Select to view content in your preferred language

Customizing the time slider in ArcGIS Java Script API 3.1

1130
2
Jump to solution
11-02-2012 04:16 AM
SunilPalkar
Deactivated User
Hello All,

I want to customize the time slider. Currently I am using "esriTimeUnitsMonths" in which I am getting only months not the year (Please check the screenshot [ATTACH=CONFIG]18970[/ATTACH])

I want to put month name +year ex. Jan 09 Feb 09 like that..

I researched on Google but I am not able find suitable information. Some one told me that create the array but we can use array on time slider.

Any help will be great..thanks in advance : )

Software : ArcGIS Server 10.1 & ArcGIS Java Script API 3.1

var timeExtent = new esri.TimeExtent();         timeExtent.startTime = new Date("1/1/2009 UTC");         timeExtent.endTime = new Date("12/31/2011 UTC");         timeSlider.setLoop(true);         timeSlider.setThumbCount(2);         //timeSlider.setTickCount(dojo.date.difference(timeExtent.startTime,timeExtent.endTime,"Months"));         // original timeSlider.createTimeStopsByTimeInterval(timeExtent,1,'esriTimeUnitsMonths');         timeSlider.createTimeStopsByTimeInterval(timeExtent,1,'esriTimeUnitsMonths');         //timeSlider.createTimeStopsByTimeInterval(timeExtent,1,'esriTimeUnitsYears');         timeSlider.setThumbIndexes([0,1]);        // timeSlider.timeStops(3);         timeSlider.setThumbMovingRate(1000);         timeSlider.startup();
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
I posted an answer to this over on gis.se:  http://gis.stackexchange.com/a/39175/124

View solution in original post

0 Kudos
2 Replies
derekswingley1
Deactivated User
I posted an answer to this over on gis.se:  http://gis.stackexchange.com/a/39175/124
0 Kudos
SunilPalkar
Deactivated User
I posted an answer to this over on gis.se:  http://gis.stackexchange.com/a/39175/124


Thanks for your reply..I will try this and let you know..I think you resolved my question..

Thanks a lot !!! : )
0 Kudos