fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.68k stars 848 forks source link

fix: correct `PolygonLayer.useAltRenderer` renderer when `Polygon`s have multiple holes #1906

Closed JaffaKetchup closed 4 weeks ago

JaffaKetchup commented 1 month ago

Also added helpful debugging tool to show triangulation output.

Fixes #1899.

JaffaKetchup commented 4 weeks ago

One polygon on the polygon page seems odd to me.

It's designed to show that we don't support self-intersecting Polygons. The earcutting algorithm is an extension of ear-clipping that supports holes, but it still doesn't support self-intersections.