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!