Add keyboard shortcuts to the slippy map.
authorTom Hughes <tom@compton.nu>
Wed, 21 Nov 2007 09:51:55 +0000 (09:51 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Nov 2007 09:51:55 +0000 (09:51 +0000)
public/javascripts/map.js

index 7b5c06bd045e33fc05e6487124bf1659330faf4b..2bcfa6959ed15abd79fde8e4be5535f5a1d297e1 100644 (file)
@@ -28,6 +28,7 @@ function createMap(divName) {
    map.addLayer(markers);
 
    map.addControl(new OpenLayers.Control.LayerSwitcher());
+   map.addControl(new OpenLayers.Control.KeyboardDefaults());
 
    return map;
 }