flutter_map icon indicating copy to clipboard operation
flutter_map copied to clipboard

Add separate FilterQuality parameter to RotatedOverlayImage

Open Robbendebiene opened this issue 1 month ago • 0 comments

This PR allows setting a separate FilterQuality (and more importantly null) on the Transform widget instead of using the same filterQuality as used on the Image for RotatedOverlayImage. I believe this was an oversight introduced by this change: https://github.com/fleaflet/flutter_map/commit/2e64369330ada7d8424a98c79dea5ae591b7d1c8

This fixes a problem we encountered. When zooming the rotated image sometimes flickers. My guess is that this happens because the rotated image is raster cached (due to filterQuality not being null see: https://github.com/flutter/flutter/issues/106006#issuecomment-1156558005) and when the raster cache gets full (due to tiles coming in) the rotated image is somehow purged from the cache.

Demo of the bug:

https://github.com/user-attachments/assets/0356fc3b-3d62-4b62-93b9-89b26c3634d0

Robbendebiene avatar Dec 04 '25 09:12 Robbendebiene