Browse Source

Fixed show multiple draw routes

pull/3472/head
Vladyslav_Prykhodko 6 years ago
parent
commit
f305cbbed0
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts

4
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);

Loading…
Cancel
Save