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.76k stars 863 forks source link

fix: eagerly listen to `TileLayer.reset` stream to ensure handler is fired #1943

Closed JaffaKetchup closed 1 month ago

JaffaKetchup commented 3 months ago

Also added refreshing of reset listener when reset stream changes within widget lifecycle.

Fixes #1808. However, the behaviour is still not correct, because the tile loading logic is incorrect. This looks like #1813:

Therefore, this will need a follow up PR.

JaffaKetchup commented 1 month ago

We can add a more detailed test for the pruning etc. logic when #1813 is fixed.