WebMapViewer remove all locations

Hello,

I have a webmap to which I’ve add some locations using “myMap.AddLocation()”

I need to remove all locations but there is no method like “myMap.RemoveAllLocations”
I was thinking to use an auxiliary array that would hold a reference to each location.
But I wonder if there an easier way ?

Nope. If you need to reference them, keep a copy of them yourself.