I am running into an issue with the InMemoryMarkerOverlay. I am adding markers to the map that represent selected points. When I go to remove the selected points on the map the graphical representations of the markers still exist on the map, but the overlay no longer exists in the map.overlays object (seent through the debugger). Here is my code to remove the InMemoryMarkerOverylay from the map:
map.Overlays.Remove("MarkerOverlay");
map.Refresh();
This removes the overlay from the collection, but the markers still show up in the map but they seem to be floating (they are not tied to an x/y, but will display in the same x/y location of the window when the map is zoomed in or out.
Any help is appreciated.