ReyhaneMasumi / mapbox-gl-draw-cut-polygon-mode

A custom mode for MapboxGL Draw to cut polygons
MIT License
17 stars 5 forks source link

added removeFeature call, it fires update event and allows to get kno… #5

Closed ndovnar closed 2 years ago

ndovnar commented 3 years ago

It doesn't fire any events when the polygon was cut. I've added removeFeature call and it solves the problem, I've tried to fire this.map.fire(Constants.events.UPDATE) but "update" event includes both a feature after cutting and a feature before cutting.

ReyhaneMasumi commented 2 years ago

Thanks for PR. But it doesn't fix this issue. I fix this issue in another way. Please try it and feel free to create more PRs.