hayeswise / iitc-addremovemarker

IITC plugin: Add Marker and Remove Marker
MIT License
0 stars 1 forks source link

Check for instanceof L.Marker in removeMarker #5

Closed hayeswise closed 7 years ago

hayeswise commented 7 years ago

Update the removeMarker function to check for an instance of L.Marker. if (layer instanceof L.Marker)... The current approach assumes an L.Marker if there is a getLatLng() method. This means that it could unintentionally remove a L.GeodesicCircle object as well.

hayeswise commented 7 years ago

Fixed by pull request #6.