Removing a layer - UI update? #2218
Answered
by
pauldendulk
jameslavery
asked this question in
Q&A
-
I want to allow the user to add/remove/clear layers at runtime. The only layer I've currently got in the collection is a raster layer with a GeoTIFF in it. I'm making a call to Map.Layers.Clear(), but the UI isn't updating. Is there something else I need to do? Is there a restriction on removing all layers? |
Beta Was this translation helpful? Give feedback.
Answered by
pauldendulk
Oct 13, 2023
Replies: 1 comment 4 replies
-
You need to call |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jameslavery
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to call
Map.RefreshGraphics();
After that the map will be an empty white surface.