Skip to content

Commit 0f3f889

Browse files
committed
fix(ol-style-icon): allow to pass either scale or width/height property
BREAKING CHANGE: **`ol-style-icon`**: the property `scale` has no longer a default of `1`. Please pass a value of one explicitly if needed. The change was needed since the underlying OpenLayers lib want's to either have a `scale` defined or `width`/`height`. Before it wasn't possible to define an icon by `width`/`height` since the `scale` was set by default. closes #288
1 parent 71beec4 commit 0f3f889

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: src/components/styles/OlStyleIcon.vue

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const props = withDefaults(defineProps<Options>(), {
1717
displacement: () => [0, 0],
1818
offsetOrigin: "top-left",
1919
opacity: 1,
20-
scale: 1,
2120
rotateWithView: false,
2221
rotation: 0,
2322
});

0 commit comments

Comments
 (0)