timeInfo=fLayer.timeInfo; map.timeSlider = myTimeSlider; myTimeSlider.createTimeStopsByTimeInterval(timeInfo.timeExtent,1,TimeInfo.UNIT_MINUTES);
I published data on the ArcGIS server with following service: http://176.34.114.255/ArcGIS/rest/services/fleetPoc/fleetTracks/MapServer (A layer with cartracks, a table with info about the cartracks)I want to run a timeslider on the track layer which includes data with time information from 7/20/2010 - 8:23:00 AM to 7/21/2010 - 12:37:00 AMThe layer is time-enabled, with following settings in mxd:*layer time extent -> calculated automatically: and as a result set to 7/20/2010 - 8:24:00 AM to 7/21/2010 - 12:38:00 AM)*Advanced setting: UTC+1 (as data are in Germany) / no correction for daylight savings*time offset = 1 minFollowing, looking at:*general service: http://176.34.114.255/ArcGIS/rest/services/fleetPoc/fleetTracks/MapServer the Time Info informs: Time Extent: [2010/07/20 08:24:00 UTC, 2010/07/21 00:38:00 UTC] *click on the tracks: http://176.34.114.255/ArcGIS/rest/services/fleetPoc/fleetTracks/MapServer/0 the Time Info informs: Time Extent: [2010/07/20 07:24:00 UTC, 2010/07/20 23:38:00 UTC]; Time Zone: W. Europe Standard Time; Respects Daylight Saving: FalseIn my timeslider I want to get the timeinformation automaticaly from my layer using:timeInfo=fLayer.timeInfo; map.timeSlider = myTimeSlider; myTimeSlider.createTimeStopsByTimeInterval(timeInfo.timeExtent,1,TimeInfo.UNIT_MINUTES);(It concerns a ArcGISdynamiclayer so units are hardcoded but I'd like to retrieve the timeInfo directly from the layer. However, when I run the application, the timeslider starts 2 hours later and ends 2 hours later: 7/20/2010 - 10:24:00 to 7/21/2010 - 02:38:00 When I debug on the timeInfo: it returns also information 2 hours too late: startTime = 7/20/2010 - 10:24:00 GMT+0200, endTime = 7/21/2010 GMT+0200.I tried the removing the advanced settings in the mxd (no UTC info); adding/removing the daylight savings but that did not help.Does somebody has a tip how to tackle this issue?Thanks in advance!Kindly,Leen
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.