diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 518a030738..35b19e9af3 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -31,8 +31,9 @@ L.OSM.layers = function (options) { var miniMap = L.map(mapContainer[0], { attributionControl: false, zoomControl: false, keyboard: false }) .addLayer(new layer.constructor(layer.options)); - if (layer.options.schemeClass) - miniMap.getPane('tilePane').classList.add(layer.options.schemeClass); + if (layer.options.schemeClass) { + miniMap.getPane("tilePane").classList.add(layer.options.schemeClass); + } miniMap.dragging.disable(); miniMap.touchZoom.disable();