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

feat: added interactivity to `CircleLayer` & refactored interactivity out into seperate classes #1886

Closed JaffaKetchup closed 1 month ago

JaffaKetchup commented 1 month ago

Uses same framework as in PolylineLayer/PolygonLayer, but less complex (no pre-projection).

Additionally, to reduce duplication and make it easier to change behaviour in future, all these layers now use a single system, and are only made responsible for hit testing a single element (via an implemented method invoked by the shared hitTest implementation).

JaffaKetchup commented 1 month ago

I believe it is working correctly. Like a Stack, the element at the bottom of the list is rendered on top, and this is reflected in the hit dialog in my testing. (Same as all the other layers, the transparency isn't properly supported by the painter, but this was intentional I believe to improve efficiency.)

I've renamed the directory to 'shared' :)