Skip to content

Commit

Permalink
Lint leaflet.layers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hlfan authored Dec 13, 2024
1 parent 2a3ec98 commit 0664b6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/assets/javascripts/leaflet.layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0664b6e

Please sign in to comment.