Browse Source

UI: Fix marker removal on trip data layer

pull/12875/head
Igor Kulikov 2 years ago
parent
commit
77e4e665d7
  1. 1
      ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/trips-data-layer.ts

1
ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/trips-data-layer.ts

@ -127,6 +127,7 @@ class TbTripDataItem extends TbDataLayerItem<TripsDataLayerSettings, TbTripsData
public remove() { public remove() {
if (this.marker) { if (this.marker) {
this.layer.removeLayer(this.marker);
this.marker.off(); this.marker.off();
} }
this.points.forEach(pointItem => { this.points.forEach(pointItem => {

Loading…
Cancel
Save