Skip to content

Commit

Permalink
Missing styleName paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd authored Nov 8, 2023
1 parent 0417a5f commit 63a0a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/print/print-resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export default function PrintResize(options = {}) {
if (isVector(layer)) {
const features = source.getFeatures();
const styleName = layer.get('styleName');
let style = viewer.getStyle();
let style = viewer.getStyle(styleName);

const clusterStyleName = layer.get('clusterStyle') ? layer.get('clusterStyle') : undefined;
if (typeof layer.get('styleName') !== 'undefined' && layer.get('styleName') !== 'origoStylefunction' && layer.get('styleName') !== 'default') {
Expand Down

0 comments on commit 63a0a01

Please sign in to comment.