Browse Source

UI: Fixed widgets maps backward compatibility for save location

pull/5634/head
Vladyslav_Prykhodko 5 years ago
parent
commit
4f342b5961
  1. 6
      ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts

6
ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts

@ -70,9 +70,9 @@ export class MapWidgetController implements MapWidgetInterface {
parseWithTranslation.setTranslate(this.translate);
this.map = new MapClass(this.ctx, $element, this.settings);
(this.ctx as any).mapInstance = this.map;
this.map.saveMarkerLocation = this.setMarkerLocation;
this.map.savePolygonLocation = this.savePolygonLocation;
this.map.saveLocation = this.saveLocation;
this.map.saveMarkerLocation = this.setMarkerLocation.bind(this);
this.map.savePolygonLocation = this.savePolygonLocation.bind(this);
this.map.saveLocation = this.saveLocation.bind(this);
this.pageLink = {
page: 0,
pageSize: this.settings.mapPageSize,

Loading…
Cancel
Save