From 5846e39a36fcd26c29fde86101e30b551b8a905a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Nov 2017 14:29:17 +0000 Subject: [PATCH] Disable keyboard controls for layer switcher maps Fixes #1673 --- app/assets/javascripts/leaflet.layers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index eedf718d3..a465e1449 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -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(); -- 2.39.5