Skip to content

Commit

Permalink
Merge pull request #3147 from Geoportail-Luxembourg/fix_encode_layer
Browse files Browse the repository at this point in the history
bind the current context
  • Loading branch information
rmichaelis authored May 31, 2024
2 parents cf70dbf + 11633d4 commit ac791e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoportal/jsapi/src/printmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ encodeMap_(scale, object) {
}
this.encodeLayer(object.layers, layer, viewResolution);
}
}, this);
}.bind(this));

var overlays = this.map_.getOverlays();
overlays.forEach(function (layer) {
Expand Down Expand Up @@ -269,7 +269,7 @@ encodeMap_(scale, object) {
}
}
}
}, this);
}.bind(this));
}

/**
Expand Down

0 comments on commit ac791e3

Please sign in to comment.