Skip to content
Advertisement

Tag: vue2leaflet

How to color vue2 leaflet markers dynamically?

I have an google-maps_pin.svg file which represents a google-maps pin. I would like to color the different markers (generated with v-for) based on categories (restaurant, art gallery, etc.) dynamically. Is there a way to achieve that with vue2 leaflet? Here’s my map: The color I want to give to the individual pins is stored in markedLocation.info.category.color variable. Answer Yes you

Advertisement