Commit 14371eace1b8a5e7f984ecbcbab9fe9a32ca2b86
Committed by
GitHub
Merge pull request #2923 from vvlladd28/bug/map/input
[3.0] Fixed input maps
Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -79,6 +79,9 @@ export class MapWidgetController implements MapWidgetInterface { |
79 | 79 | this.map = new MapClass($element, this.settings, this.ctx.$injector); |
80 | 80 | this.map.setImageAlias(this.subscribeForImageAttribute()); |
81 | 81 | this.map.saveMarkerLocation = this.setMarkerLocation; |
82 | + if (this.settings.draggableMarker) { | |
83 | + this.map.setDataSources(parseData(this.data)); | |
84 | + } | |
82 | 85 | } |
83 | 86 | |
84 | 87 | map: LeafletMap; |
... | ... | @@ -252,9 +255,6 @@ export class MapWidgetController implements MapWidgetInterface { |
252 | 255 | if (this.settings.showPolygon) { |
253 | 256 | this.map.updatePolygons(parseData(this.data)); |
254 | 257 | } |
255 | - if (this.settings.draggableMarker) { | |
256 | - this.map.setDataSources(parseData(this.data)); | |
257 | - } | |
258 | 258 | this.map.updateMarkers(parseData(this.data)); |
259 | 259 | } |
260 | 260 | ... | ... |