adopted-ember-addons / adopted-ember-addons/ember-leaflet

GeoJson Custom Marker not always cleaned up

Đang mở
#471 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.