Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sipriReportTimeline(data){
- var getInterval = function(feature) {
- return {
- start: feature.properties.date_long_moment,
- end: moment("1998-05-30"),
- };
- };
- var timelineControl = L.timelineSliderControl({
- formatOutput: function(date){
- return new Date(date).toLocaleDateString();
- },
- duration: 100000,
- });
- var timeline = L.timeline(data, {
- getInterval: getInterval,
- pointToLayer: sipriReportPointToLayer,
- });
- timelineControl.addTo(myMap);
- timelineControl.addTimelines(timeline);
- timeline.addTo(myMap);
- };
Add Comment
Please, Sign In to add comment