From 11633d4d22eeb5a4e9a334ed5af876b28250f8e1 Mon Sep 17 00:00:00 2001 From: Renaud Michaelis Date: Fri, 31 May 2024 08:42:42 +0200 Subject: [PATCH] bind the current context --- geoportal/jsapi/src/printmanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geoportal/jsapi/src/printmanager.js b/geoportal/jsapi/src/printmanager.js index 32af62e2d..f3a15349b 100644 --- a/geoportal/jsapi/src/printmanager.js +++ b/geoportal/jsapi/src/printmanager.js @@ -228,7 +228,7 @@ encodeMap_(scale, object) { } this.encodeLayer(object.layers, layer, viewResolution); } - }, this); + }.bind(this)); var overlays = this.map_.getOverlays(); overlays.forEach(function (layer) { @@ -268,7 +268,7 @@ encodeMap_(scale, object) { } } } - }, this); + }.bind(this)); } /**