ghettovoice / vuelayers

Web map Vue components with the power of OpenLayers
https://vuelayers.github.io/
MIT License
682 stars 230 forks source link

className on layer #478

Closed Isitar closed 2 years ago

Isitar commented 2 years ago

It would be nice to have a className option for the layers.

i cannot find a way to add a grayscale filter to one layer with the current implementation

doc for className:

https://openlayers.org/en/latest/apidoc/module-ol_layer_Layer-Layer.html

ghettovoice commented 2 years ago

Hello @Isitar , which version of VueLayers do you use? Is is v0.11 or v0.12. I'm asking because v0.11 is based on openlayers v5 and there is no className option on layer classes. It was added in the openlayers v6, that is used by VueLayers v0.12. And here each vl-layer-* has className prop.

Isitar commented 2 years ago

Thanks for the hint, i was using v0.11. i switched to v0.12 and it's working now.