Quickest Way to Refresh a Layer?

08-23-2018 03:55 PM
New Contributor II

After I create a point new point in a service layer I want it to refresh right away. The only way I have found is to set the refreshInterval and wait six seconds. This works:

for (var index in map.mapView.allLayerViews.items) {
   map.mapView.allLayerViews.items[index].layer.refreshInterval = 0.1;

Is there an easier way to just quickly refresh the layer though? After this it hits the server every 6 seconds which doesn't seem necessary. 


0 Kudos
0 Replies