Skip to content

Markers (with custom image ) #94

@marksteven

Description

@marksteven

Looking for a simple example of adding an image png or svg to a custom marker.
Everything I have found appears to work only through HTML or seems complicated.
Would have assumed it would be possible to do
<Marker lat={-30.22} lng= {140.913} color="rgb(0,0,0)" label="My Marker" img src={./myimage.svg} />
Or similar to Leaflet

<Marker latLng={markerLatLng2}>
                <Icon options="{iconOption}"></Icon>
                <Popup>{popupMessage2}</Popup>
            </Marker>

Any help as to direction to achieve this would be appreciated.

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