Browse Source

UI: Fix trip map control setup.

pull/12875/head
Igor Kulikov 1 year ago
parent
commit
9bd66e6533
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/maps/map.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/maps/map.ts

@ -183,7 +183,7 @@ export abstract class TbMap<S extends BaseMapSettings> {
this.map.zoomControl.setPosition(this.settings.controlsPosition);
}
this.dragMode = !this.settings.dragModeButton;
const tripsWithMarkers = this.settings.trips?.length ? this.settings.trips.filter(trip => trip.showMarker) : [];
const tripsWithMarkers = this.settings.trips?.length ? this.settings.trips.filter(trip => trip.showMarker !== false) : [];
const showTimeline = this.settings.tripTimeline?.showTimelineControl && tripsWithMarkers.length;
if (showTimeline) {

Loading…
Cancel
Save