range: true , .
This is suboptimal, however, provided that you need to move 2 sliders, both the left and right slider, which represent the limits of the period that you are interested in viewing, and not just one, for example, for a snapshot at the end of the month.
Also, one increment of the slider will add 1 point to the map, and not immediately add a whole batch.
I expect there are solutions to these problems by extending the class, but I have not had time to do this yet.
here is my code:
var sliderControl = L.control.sliderControl({
position: "topleft",
layer: membMarksCurrent,
range: true
});
map.addControl(sliderControl);
sliderControl.startSlider();
source
share