From 4f342b596155496012dd6db39e399ae4b6885f45 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 29 Nov 2021 12:00:34 +0200 Subject: [PATCH] UI: Fixed widgets maps backward compatibility for save location --- .../modules/home/components/widget/lib/maps/map-widget2.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts index 21c576eeb1..a2385b2877 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget2.ts +++ b/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,