Closed
Description
Hello,
as far as I see it is not currently possible to generate the HTML code for a divIcon (later used for a marker) easily with a template of vue, but instead it as a string. If I missed something, please tell me :)
If this does really not exist, I could imagine of an implementation like this:
<l-marker :lat-lng="[51.218963, 6.796855]">
<l-icon class="someCustomClasses" :icon-anchor="[0, 134]">
<h1>Headline</h1>
<img src="foobar.png">
<p>And this is some text</p>
</l-icon>
</l-marker>
This could also be used for normal L.icon
s:
<l-marker :lat-lng="[51.218963, 6.796855]">
<l-icon icon-url="foobar.png" :icon-anchor="[0, 134]" />
</l-marker>
Is this possible with vue? If yes, I would be happy to implement it on my own and post a PR :)
Thanks a lot for your work guys!
Metadata
Metadata
Assignees
Labels
No labels