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

event #19

Closed
chun49 opened this issue Oct 21, 2020 · 1 comment
Closed

event #19

chun49 opened this issue Oct 21, 2020 · 1 comment

Comments

@chun49
Copy link

chun49 commented Oct 21, 2020

on:click can not be used at Map component

@GenieTim
Copy link

GenieTim commented Nov 8, 2020

I suppose you should be able to use the events listed here: https://docs.mapbox.com/mapbox-gl-js/api/map/#map-events

For example, in the script section of the example in the README you could use:

mapComponent.on('click', (e) => { console.log(e.lngtlat); })

@antony antony closed this as completed Dec 9, 2020
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

3 participants