Remove size
from geostyler-openlayers-parser
#1752
Replies: 4 comments 5 replies
-
It would theoretically be possible to get the image size with a package like https://github.com/image-size/image-size and calculate the |
Beta Was this translation helpful? Give feedback.
-
Would that mean that we do not have any way of adjusting the size using the openlayers parser? Upscaling should generally work as expected, right? |
Beta Was this translation helpful? Give feedback.
-
Hi. I think it's better not to lose any styling possibility in openlayers-parser even if it includes "tricks" like switching from size to scale or passing an opacity as an alpha channel in a rgba color. Maybe it lacks a document where the styling capabilities of every style parser are compared ? Also maybe For instance, the SLD doc states :
There may be also an issue with the mapbox-parser where
|
Beta Was this translation helpful? Give feedback.
-
If mapbox and ol have a 'scale' we may should add it to geostyler-style too:
|
Beta Was this translation helpful? Give feedback.
-
OpenLayers does not offer a way to set the size of an ol/style/Icon.
When using the
size
property, a piece of the existing image can be cut out an displayed but it won't shrink or grow the image to the expected result.IMHO we should remove the
size
property from thegeostyler-openlayers-parser
and add it to unsupportedProperties instead of applying it toscale
.Any thoughts @geostyler/devs ?
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions