How to change icons in Nuxt with Composition API
digitalforgeangelo opened this issue · 0 comments
digitalforgeangelo commented
Hi, I love Leaflet and your Nuxt version, it is working flawless!
The only question I have is how can I change the markers? I have custom markers that I need to display but I am unable to change the markers so far. Can someone please explain this to me?
<l-map
:zoom="2"
:center="[0, 0]"
:max-zoom="4"
:min-zoom="2"
>
<l-tile-layer
url="https://mysite.com/maps/1/{z}/{x}/{y}.jpg"
:no-wrap="true"
/>
<l-marker
:lat-lng="[55.9464418,8.1277591]"
/>
</l-map>
</client-only>```
The above is working perfectly, but I have no clue how to change the icon of the markers when using the composition API.