Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markers (with custom image ) #94

Open
marksteven opened this issue Apr 15, 2024 · 0 comments
Open

Markers (with custom image ) #94

marksteven opened this issue Apr 15, 2024 · 0 comments

Comments

@marksteven
Copy link

marksteven commented Apr 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant