LeafletSlider
LeafletSlider copied to clipboard
Fixes a bug for initial showing of date when alwaysShowDate is true…
…AND non-marker layers are displayed.
There are actually two bug fixes here:
- _extractTimeStamp should be _extractTimestamp
- When the slider is showing layers over time (rather than markers), the single line of code in 183 doesn't work. This patch copies the logic from above.
A better fix would be to refactor the code so that the timestamp updating logic only occurs once in the code, but this seems to be a bit tricky given how the slider is set up.