You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…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
vue3-openlayers/src/components/styles/OlStyleIcon.vue
Line 20 in 27ebc4b
We can use
height
orwidth
on our icons according to OSLayers, but for this, thescale
needs to beundefined
, otherwise it fails the assert. See https://github.com/openlayers/openlayers/blob/9fc75eb74eb6097ab9e7713b6e19f7fe0f3ac261/src/ol/style/Icon.js#L179However, we cannot set undefined with
:scale="undefined"
because Vue will then just use the default, which is 1 in this case.Proposal
Set undefined by default in the props (breaking change), or otherwise rework logic to support undefined as a passed value.
The text was updated successfully, but these errors were encountered: