Disable keyboard controls for layer switcher maps
authorTom Hughes <tom@compton.nu>
Thu, 9 Nov 2017 14:29:17 +0000 (14:29 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Nov 2017 14:29:17 +0000 (14:29 +0000)
Fixes #1673

app/assets/javascripts/leaflet.layers.js

index eedf718..a465e14 100644 (file)
@@ -49,7 +49,7 @@ L.OSM.layers = function(options) {
         .appendTo(item);
 
       map.whenReady(function() {
-        var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false})
+        var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false, keyboard: false})
           .addLayer(new layer.constructor({ apikey: layer.options.apikey }));
 
         miniMap.dragging.disable();