forked from dwilhelm89/LeafletSlider
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello, I am using your plugin. I ran my application with the JSON file installation codes that you gave in the questions I asked before.
While Slider is giving the date range, I cannot show the date of the back bar as a range. How can I solve this?
//var data = JSON.parse(YOUR_JSON); //When your json is a String and not a Object
var fg = L.featureGroup();
data.forEach((g)=>{
var group = L.featureGroup();
var time = null;
g.forEach((obj)=>{
L.circleMarker([obj.lat, obj.lng],{radius: obj.radius, time: ""+obj.time}).addTo(group);
time = ""+obj.time;
});
group.options.time = time;
group.addTo(fg);
});
var sliderControl = L.control.sliderControl({layer: fg, timeStrLength: 10, rezoom: 6});
mymap.addControl(sliderControl);
sliderControl.startSlider();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
