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

Access to mapbox-gl-draw events #78

Open
vfs-code opened this issue May 17, 2020 · 0 comments
Open

Access to mapbox-gl-draw events #78

vfs-code opened this issue May 17, 2020 · 0 comments

Comments

@vfs-code
Copy link

Hi! I trying to listen the events fired by mapbox-gl-draw, but I dont get the way to do that. I have tried with this code:

@map-draw.created ="elementCreated"
...
methods: {
elementCreated(map, e){
console.log(e);
},

But i don't get the event, are supported mapbox-gl-draw events or any workaround to be able to know when a line have been created using linestring tool?

Thanks!

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