Skip to content

Commit

Permalink
Merge pull request #15314 from MoonE/fix-flat-icon-declutter-mode-pro…
Browse files Browse the repository at this point in the history
…perty

Fix reading of flat style icon declutter mode
  • Loading branch information
MoonE committed Nov 10, 2023
2 parents bc29576 + 57a435d commit 1bbe503
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ol/render/canvas/style.js
Expand Up @@ -729,7 +729,10 @@ function buildIcon(flatStyle, context) {
const width = optionalNumber(flatStyle, prefix + 'width');
const height = optionalNumber(flatStyle, prefix + 'height');
const size = optionalSize(flatStyle, prefix + 'size');
const declutterMode = optionalDeclutterMode(flatStyle, prefix + 'declutter');
const declutterMode = optionalDeclutterMode(
flatStyle,
prefix + 'declutter-mode'
);

const icon = new Icon({
src,
Expand Down

0 comments on commit 1bbe503

Please sign in to comment.