Skip to content

Access to mapbox-gl-draw eventsΒ #78

@victor-fernandez-code

Description

@victor-fernandez-code

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions