Closed iomturner closed 4 years ago
Seems the coords generated from polylabel are wrong for this L shape
https://stackblitz.com/edit/mapbox-simple-map-q8vjbb?file=index.ts
Not wrong, you're just using a tolerance value that's too big. Changing to polylabel([coords], 0.00001) places the dot in the correct position.
polylabel([coords], 0.00001)
Seems the coords generated from polylabel are wrong for this L shape
https://stackblitz.com/edit/mapbox-simple-map-q8vjbb?file=index.ts