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

A custom mode for MapboxGL Draw to split polygons
MIT License
24 stars 13 forks source link

Mapbox Draw Constants Problem #15

Open marcosci opened 7 months ago

marcosci commented 7 months ago

Hi Reyhane and probably @mhsattarian!

https://github.com/ReyhaneMasumi/mapbox-gl-draw-split-polygon-mode/blob/7882ebee15c2a91ccc75570f17af74850717980a/src/mode.js#L3C1-L4C1

Can you explain me how this works? Sorry for the probably not that clever question, but if I install mapbox draw it only contains a dist folder.

Nibble-Byte commented 5 months ago

@marcosci Did you manage to resolve this issue in some way? I have just encountered the exact same thing....

@ReyhaneMasumi any insight?

marcosci commented 5 months ago

Hey Timothy!

As i didn't hear back here, I made a fork and fixed the issues:

https://github.com/marcosci/mapbox-split-polygon-mode

It s also on npm:

https://www.npmjs.com/package/mapbox-split-polygon-mode

Let me know if it works for you!