flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Fix annotation manager crashes #1297

Closed felix-ht closed 1 year ago

felix-ht commented 1 year ago

Fixes a crash that could happen if multiple overlap placement settings were changed without awaiting the results.

At its core the issue is caused by the fact that two async calls are needed to remove and than add layers.

I fixed this by making addLayer upsert the layer if required.

fixes https://github.com/flutter-mapbox-gl/maps/issues/1207