You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like the time slider stops at the position of the last day (showing the most recent map) after refreshing the page. Should I use control.setTime("Date") ? I didn't find the usage of this function in examples given but it appeared in the test file. Somehow it doesn't work in my code. Am I using it in the right way?
var slider = L.timelineSliderControl({
formatOutput: function(date){
return new Date(date).toLocaleDateString();
},
steps:150,
position: 'topleft',
showTicks: false
});
map.addControl(slider);
var illinois_counties_ts = L.timeline(illinois_counties,{style: styleFunc,
waitToUpdateMap: true, onEachFeature: onEachFeature_illinois_counties});
slider.setTime("05-05-2020");
illinois_counties_ts.addTo(map);`
The text was updated successfully, but these errors were encountered:
I would like the time slider stops at the position of the last day (showing the most recent map) after refreshing the page. Should I use control.setTime("Date") ? I didn't find the usage of this function in examples given but it appeared in the test file. Somehow it doesn't work in my code. Am I using it in the right way?
The text was updated successfully, but these errors were encountered: