From 506ab8ac204da75c16931c3dacad1494bc0233de Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 1 Oct 2024 14:52:30 +0500 Subject: [PATCH] Fix eslint for plugins/zoom-slider.js --- plugins/zoom-slider.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/plugins/zoom-slider.js b/plugins/zoom-slider.js index 8cc448f8a..de979819d 100644 --- a/plugins/zoom-slider.js +++ b/plugins/zoom-slider.js @@ -1,12 +1,17 @@ // @author fragger // @name Zoom slider // @category Controls -// @version 0.2.2 +// @version 0.2.3 // @description Show a zoom slider on the map instead of the zoom buttons. /* exported setup, changelog --eslint */ +/* global L -- eslint */ var changelog = [ + { + version: '0.2.3', + changes: ['Refactoring: fix eslint'], + }, { version: '0.2.2', changes: ['Version upgrade due to a change in the wrapper: added plugin icon'], @@ -19,15 +24,13 @@ window.plugin.zoomSlider = zoomSlider; zoomSlider.options = { // Height of zoom-slider.png in px - //stepHeight: 8, - + // stepHeight: 8, // Height of the knob div in px (including border) - //knobHeight: 6, - - //styleNS: 'leaflet-control-zoomslider' + // knobHeight: 6, + // styleNS: 'leaflet-control-zoomslider' }; -function setup () { +function setup() { loadLeafletZoomslider(); var map = window.map; @@ -40,17 +43,15 @@ function setup () { // which makes zoomslider not aligning with other leaflet controls // Here we are trying to unset it (make the same as general `.leaflet-control`) // (adapted from https://github.com/kartena/Leaflet.zoomslider/pull/74) - $('