Select to view content in your preferred language

Best Practice for Display (Near) Real-Time Data

497
3
05-07-2010 05:09 AM
AdamPfister
Esri Contributor
I know everyone has a different setup but are there are any recommended methodologies for displaying real-time (or near real-time) data with v2.0 of the API?  I can't find a specific event on the DynamicMapServiceLayer or FeatureLayer that would "listen" for updates to its own underlying data. Should I be looking @ the Silverlight or Flex API for this type of application?

Any thoughts?

Thanks,
Adam
0 Kudos
3 Replies
DerekSwingley
Occasional Contributor
If you've got a dynamic map service that points to a data source that is constantly updated, you could do something as simple as a using setInterval() to refresh your map service every couple of seconds.  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/dynamicmapservicelayer...
0 Kudos
AdamPfister
Esri Contributor
It does seem like that's the only way to do this at the moment.

Thanks for the reply.
0 Kudos
by Anonymous User
Not applicable
I can't seem to get this to work, can anyone post a little bit of code that shows how to do this? Also, it seems one could trigger refresh() when the layer's onUpdateStart() event fires. Does that event fire as soon as the data starts to be edited, or am I way off-base on this? Thanks!
0 Kudos