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

Adding Marker Example To The Repo #14

Open
f412h4d opened this issue Jan 27, 2021 · 3 comments
Open

Adding Marker Example To The Repo #14

f412h4d opened this issue Jan 27, 2021 · 3 comments

Comments

@f412h4d
Copy link

f412h4d commented Jan 27, 2021

Please Add An Example Of Adding Markes And Updating Their Place On The Map

@rahsheen
Copy link
Contributor

I added a PR to include a few examples for this. Hope it helps.

@sabasm
Copy link

sabasm commented Jun 23, 2021

i can create and render a marker on the map with the usual example from mapbox docs on react, like
let marker
marker = new mapboxgl.Marker().setLngLat(geolocation).addTo(map.current);
but i cannot use/access the new marker variable and functions outside of the scopes, even directly on the component block itself

@yewyewXD
Copy link
Contributor

@sabasm can you describe more about what you wanted to achieve with the marker? :)

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

4 participants