map.getLayer("The name/id of your layer").refresh();
Yes, is about JsApi - but 3.x
This is the closest post I've found related to my issue.
Is not about a Graphic in a graphic layer, but the geometry of a feature.
I've found in the mean time a solution, which seems to work well:
feature._layer.refresh() however does nothing!
for the graphic in the graphic layer, the suggested solution works well:
Tx, for your reply.
Horia,
Since Flex is dead I assume you posted in the wrong space and you are actually talking about JS api. If that is the case and it is the 4.x API you are talking about then you need to remove the graphic from the layer and re add it to get geometry updates to show.
I see refreshing the layer - alright, however, the feature geometry I've just changed does not show in another position until I zoom in (and out.)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.