Skip to content

Commit

Permalink
Merge pull request #3157 from Geoportail-Luxembourg/fix_encode_layer
Browse files Browse the repository at this point in the history
first parameter of the call is the ctx
  • Loading branch information
rmichaelis authored Jun 20, 2024
2 parents 18ab23f + 94d78a6 commit 0b253de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoportal/jsapi/src/printmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ encodeVectorLayer_(arr, layer, resolution) {
var styleData = null;
var styleFunction = originalFeature.getStyleFunction();
if (styleFunction !== undefined) {
styleData = styleFunction.call(originalFeature, resolution);
styleData = styleFunction.call(originalFeature, originalFeature, resolution);
} else {
styleFunction = layer.getStyleFunction();
if (styleFunction !== undefined) {
Expand Down

0 comments on commit 0b253de

Please sign in to comment.