GeoJson Custom Marker not always cleaned up
knownasilya opened this issue · comments
Ilya Radchenko commented
Example code:
@action
createDepotMarker(_feature: Feature, latlng: LatLng) {
return new Marker(latlng, {
zIndexOffset: 1000,
icon: new Icon({
iconUrl: '/assets/images/depot-icon.png',
iconRetinaUrl: '/assets/images/depot-icon-2x.png',
shadowUrl: '/assets/images/marker-shadow.png',
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
tooltipAnchor: [16, -28],
shadowSize: [41, 41],
}),
});
}
Steps to reproduce:
- Render markers as geojson (features)
- Remove existing marker
- Add back previously removed marker
- Remove again, this time it will not remove form the UI