ghettovoice / vuelayers

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

choropleth #340

Closed empereira closed 3 years ago

empereira commented 4 years ago

hi,

Would the vuelayers have a choropleth or just through the pure openlayers js?

ghettovoice commented 4 years ago

Hello @empereira , choropleth is just a special styling of vector features. So just you need to write a custom style function, this is possible with vuelayers and very similar to openlayers.

Here is another example that can show you how to set style function https://jsfiddle.net/ghettovoice/9yx5Lfj1/