Quickest Way to Refresh a Layer?

850
0
08-23-2018 03:55 PM
jordanparfitt1
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. 

Thanks!

0 Kudos
0 Replies