adopted-ember-addons / adopted-ember-addons/ember-leaflet
GeoJson Custom Marker not always cleaned up
- Ngôn ngữ chính
- JavaScript
- Star
- 210
- Fork
- 88
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 16
Mô tả
Example code:
```hbs
```
```js
@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:
1. Render markers as geojson (features)
2. Remove existing marker
3. Add back previously removed marker
4. Remove again, this time it will not remove form the UI
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.