AnsweredAssumed Answered

ArcGIS Online Traffic data and TimeSlider conflict

Question asked by msbsmith on Jan 4, 2017
Latest reply on Jan 4, 2017 by msbsmith



I have a JavaScript application already using one of my own time-aware map services with a timeslider controlling the display of the features.  I now want to add the option to display the LIVE traffic data from ArcGIS Online (unaffected by the timeslider).  I know how to display the traffic data normally, that's fine.

The problem is I don't want the traffic data to be affected by the timeslider (because it is live data), I only want the timeslider to control the features in my own map service.  But because the timeslider is added to the 'map', and not a specific DynamicMapServiceLayer, it wants to control both my DynamicMapServiceLayer and the traffic data DynamicMapServiceLayer, the result being the traffic data disappears from the map.

When my code applies the timeslider to the map with:



The traffic data disappears because both services are added to the 'map'.  I need to be able to display historic data from my service controlled by the timeslider AND the live traffic data unaffected by the timeslider.  Alternatively a way to toggle between the two.


Can anyone please tell me how I can make this work?  How can I essentially break the relationship between the traffic service from the timeslider so I can show the live traffic data at the same time as having a timeslider applied to the map?


Alternatively, how can destroy the timeslider to allow me to at least toggle between viewing the traffic data and the time-aware data in my other service?


Thank you,