Input maps fixed: error create the first marker
This commit is contained in:
parent
890024eefa
commit
923e3a48a8
@ -79,6 +79,9 @@ export class MapWidgetController implements MapWidgetInterface {
|
|||||||
this.map = new MapClass($element, this.settings, this.ctx.$injector);
|
this.map = new MapClass($element, this.settings, this.ctx.$injector);
|
||||||
this.map.setImageAlias(this.subscribeForImageAttribute());
|
this.map.setImageAlias(this.subscribeForImageAttribute());
|
||||||
this.map.saveMarkerLocation = this.setMarkerLocation;
|
this.map.saveMarkerLocation = this.setMarkerLocation;
|
||||||
|
if (this.settings.draggableMarker) {
|
||||||
|
this.map.setDataSources(parseData(this.data));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
map: LeafletMap;
|
map: LeafletMap;
|
||||||
@ -252,9 +255,6 @@ export class MapWidgetController implements MapWidgetInterface {
|
|||||||
if (this.settings.showPolygon) {
|
if (this.settings.showPolygon) {
|
||||||
this.map.updatePolygons(parseData(this.data));
|
this.map.updatePolygons(parseData(this.data));
|
||||||
}
|
}
|
||||||
if (this.settings.draggableMarker) {
|
|
||||||
this.map.setDataSources(parseData(this.data));
|
|
||||||
}
|
|
||||||
this.map.updateMarkers(parseData(this.data));
|
this.map.updateMarkers(parseData(this.data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user