input bundles updates
This commit is contained in:
parent
73b03394f0
commit
8bc06df8d4
File diff suppressed because one or more lines are too long
@ -47,7 +47,7 @@ import { UtilsService } from '@core/services/utils.service';
|
|||||||
// @dynamic
|
// @dynamic
|
||||||
export class MapWidgetController implements MapWidgetInterface {
|
export class MapWidgetController implements MapWidgetInterface {
|
||||||
|
|
||||||
constructor(public mapProvider: MapProviders, private drawRoutes: boolean, public ctx: WidgetContext, $element: HTMLElement) {
|
constructor(public mapProvider: MapProviders, private drawRoutes: boolean, public ctx: WidgetContext, $element: HTMLElement, isEdit?) {
|
||||||
if (this.map) {
|
if (this.map) {
|
||||||
this.map.map.remove();
|
this.map.map.remove();
|
||||||
delete this.map;
|
delete this.map;
|
||||||
@ -58,6 +58,9 @@ export class MapWidgetController implements MapWidgetInterface {
|
|||||||
$element = ctx.$container[0];
|
$element = ctx.$container[0];
|
||||||
}
|
}
|
||||||
this.settings = this.initSettings(ctx.settings);
|
this.settings = this.initSettings(ctx.settings);
|
||||||
|
if (isEdit) {
|
||||||
|
this.settings.draggableMarker = true;
|
||||||
|
}
|
||||||
this.settings.tooltipAction = this.getDescriptors('tooltipAction');
|
this.settings.tooltipAction = this.getDescriptors('tooltipAction');
|
||||||
this.settings.markerClick = this.getDescriptors('markerClick');
|
this.settings.markerClick = this.getDescriptors('markerClick');
|
||||||
this.settings.polygonClick = this.getDescriptors('polygonClick');
|
this.settings.polygonClick = this.getDescriptors('polygonClick');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user