From f305cbbed0701d95787cb9d05b5cc73215d9efea Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 15 Sep 2020 17:00:05 +0300 Subject: [PATCH] Fixed show multiple draw routes --- .../modules/home/components/widget/lib/maps/leaflet-map.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts index 9d2481baec..5d6f39850e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts @@ -622,10 +622,10 @@ export default abstract class LeafletMap { // Polyline - updatePolylines(polyData: FormattedData[][], updateBounds = true, data?: FormattedData) { + updatePolylines(polyData: FormattedData[][], updateBounds = true, activePolyline?: FormattedData) { const keys: string[] = []; polyData.forEach((dataSource: FormattedData[]) => { - data = data || dataSource[0]; + const data = activePolyline || dataSource[0]; if (dataSource.length && data.entityName === dataSource[0].entityName) { if (this.polylines.get(data.entityName)) { this.updatePolyline(data, dataSource, this.options, updateBounds);