Skip to content

Fix #5 and add showsMyLocationButton#42

Open
omardlhz wants to merge 2 commits intoteovillanueva:mainfrom
omardlhz:main
Open

Fix #5 and add showsMyLocationButton#42
omardlhz wants to merge 2 commits intoteovillanueva:mainfrom
omardlhz:main

Conversation

@omardlhz
Copy link
Copy Markdown

@omardlhz omardlhz commented Apr 26, 2024

Fixes #5 and adds showMyLocationButton.

It converts a ReactDOM to a HTMLElement and appends it to map controls.

If we dont want to use ReactDOM, we can create an html element like here:

https://github.com/margaridafp/google-maps-current-location/blob/d6c3c5c1ec2c2d8e5165c7729ad9d02502556555/src/LocationButton.ts

Screenshot:

image

@teovillanueva
Copy link
Copy Markdown
Owner

Hey! Thanks for the PR. Let me know if this is ready to merge! LGTM!

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

Successfully merging this pull request may close these issues.

Map doesn't show user marker

2 participants