dojo.connect(map, "onLayerAdd", function (layer) { if (layer.id == "my animated layer") { timeSlider = new esri.dijit.TimeSlider({}, dojo.byId("timeSliderDiv")); map.setTimeSlider(timeSlider); timeSlider.setThumbCount(1); timeSlider.setThumbMovingRate(1500); //1.5 seconds between frames timeSlider.createTimeStopsByTimeInterval(layer.timeInfo.timeExtent, 6, 'esriTimeUnitsHours'); //6 hours matches steps set in ArcMap timeSlider.startup(); dojo.connect(timeSlider, "onTimeExtentChange", function (timeExtent) { dojo.byId('divTime').innerHTML = timeExtent.endTime; }); } });
Solved! Go to Solution.
timeSlider.singleThumbAsTimeInstant(true);
When true, the time slider displays features for the current point in time. When false cumulative data is displayed from the start time to the current thumb location. The default value is false.
timeSlider.singleThumbAsTimeInstant(true);
When true, the time slider displays features for the current point in time. When false cumulative data is displayed from the start time to the current thumb location. The default value is false.