mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
ISC License
952 stars 593 forks source link

The ability to delete vertices on click #954

Open mlshvdv opened 4 years ago

mlshvdv commented 4 years ago

mapbox-gl-js version: 1.2.1 mapbox-gl-draw version: 1.1.2

Is it possible to delete linestring's vertices on click like it was possible in leaflet.draw? An attempt to ask stackoverflow community is failed. (https://stackoverflow.com/questions/58012617/is-it-possible-to-delete-vertices-on-click-in-mapbox-gl-draw)

How it works in leaflet.draw

Thanks.

clementmas commented 3 years ago

Looks like this option was added in a previous PR: https://github.com/mapbox/mapbox-gl-draw/pull/212

This PR implements clicking on a vertex to delete it

But I don't see any way to bring it back with the current version