refreshInterval on FeatureLayer  3.7 API

2056
0
10-02-2013 01:06 PM
MeleKoneya
Occasional Contributor III
Just started to play around with the 3.7 API and found the refreshInterval property very interesting.

I am able to set a value on a ArcGISDynamicMapServiceLayer and watch our vehicle locations update using the code below:

var wtrvehMSL = new esri.layers.ArcGISDynamicMapServiceLayer("http://arcserver/ArcGIS/rest/services/WaterWO/Water_WO_Misc/MapServer", 
{
[INDENT][/INDENT]refreshInterval: .05
   });


Pretty cool stuff, but when I try to use a FeatureLayer,  the map does not refresh.    I have tried using all different modes, but no luck.

Has anyone tried this yet with a FeatureLayer and if so do you have some code that worked?

Thanks,

Mele
0 Kudos
0 Replies