Skip to content

L.divIcon with rendered HTML-Code #267

Closed
@byWulf

Description

@byWulf

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.icons:

<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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions