Ticket #855 (closed feature: fixed)
addMarker() doesn't display a marker that was previously removed
|Reported by:||openlayers||Owned by:||euzuro|
If you do:
layer.addMarker(marker); layer.removeMarker(marker); layer.addMarker(marker);
then marker doesn't get drawn on the map!
This is because removeMarker() doesn't mark the marker as not drawn, making the 2nd addMarker() call think marker is already drawn.
Attached patch fixes the problem. Test added in the patch.