UI: Fixed widgets maps backward compatibility for save location

This commit is contained in:
Vladyslav_Prykhodko 2021-11-29 12:00:34 +02:00
parent bdb7d0905d
commit 4f342b5961

View File

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