Browse Source
Merge pull request #2923 from vvlladd28/bug/map/input
[3.0] Fixed input maps
pull/2929/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts
|
|
|
@ -79,6 +79,9 @@ export class MapWidgetController implements MapWidgetInterface { |
|
|
|
this.map = new MapClass($element, this.settings, this.ctx.$injector); |
|
|
|
this.map.setImageAlias(this.subscribeForImageAttribute()); |
|
|
|
this.map.saveMarkerLocation = this.setMarkerLocation; |
|
|
|
if (this.settings.draggableMarker) { |
|
|
|
this.map.setDataSources(parseData(this.data)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
map: LeafletMap; |
|
|
|
@ -252,9 +255,6 @@ export class MapWidgetController implements MapWidgetInterface { |
|
|
|
if (this.settings.showPolygon) { |
|
|
|
this.map.updatePolygons(parseData(this.data)); |
|
|
|
} |
|
|
|
if (this.settings.draggableMarker) { |
|
|
|
this.map.setDataSources(parseData(this.data)); |
|
|
|
} |
|
|
|
this.map.updateMarkers(parseData(this.data)); |
|
|
|
} |
|
|
|
|
|
|
|
|