I would like to integrate the time slider into a JSONP geoserver. Here is the current code I have http://jsfiddle.net/qcwcrwge/26/ and I would like to use the time slider with a layer called feature.properties.time.
I have tried to add the time slide libraries and the lines
var testlayer = L.geoJson(json), sliderControl = L.control.sliderControl({ position: "topright", layer: feature.properties.time });//For a Range-Slider use the range property:sliderControl = L.control.sliderControl({ position: "topright", layer: feature.properties.time, range: true});//Make sure to add the slider to the map ;-)myMap.addControl(sliderControl);//And initialize the slidersliderControl.startSlider();Just after the line
}).addTo(coolPlaces);But it does not work. Do you know what the problem can be?
Thanks.
أكثر...
I have tried to add the time slide libraries and the lines
var testlayer = L.geoJson(json), sliderControl = L.control.sliderControl({ position: "topright", layer: feature.properties.time });//For a Range-Slider use the range property:sliderControl = L.control.sliderControl({ position: "topright", layer: feature.properties.time, range: true});//Make sure to add the slider to the map ;-)myMap.addControl(sliderControl);//And initialize the slidersliderControl.startSlider();Just after the line
}).addTo(coolPlaces);But it does not work. Do you know what the problem can be?
Thanks.
أكثر...