vue-mapbox-gl icon indicating copy to clipboard operation
vue-mapbox-gl copied to clipboard

Access to mapbox-gl-draw events

Open vfs-code opened this issue 5 years ago • 0 comments

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!

vfs-code avatar May 17 '20 15:05 vfs-code