flutter-maplibre-gl icon indicating copy to clipboard operation
flutter-maplibre-gl copied to clipboard

Map partly unresponsive after rotating the device

Open maxammann opened this issue 3 years ago • 3 comments

The map becomes partly unresponsive after rotating the android device.

To Reproduce Steps to reproduce the behavior:

  1. Go to Rotate device to landscape
  2. Cold start app
  3. The map view is not responding on the bottom side in portrait mode.

port

(The red area does not respond to touch)

OR:

  1. Go to Rotate device to portrait
  2. Cold start app
  3. The map view is not responding on the right side in portrait mode. land

Related to https://github.com/digitalfabrik/ehrenamtskarte/issues/415

maxammann avatar Jan 12 '22 14:01 maxammann

Probably the same issue as https://github.com/flutter-mapbox-gl/maps/issues/195

m0nac0 avatar Jan 12 '22 19:01 m0nac0

Absolutely thanks for referencing this!

maxammann avatar Jan 13 '22 10:01 maxammann

Alright so this whacky and hacky workaround works now for us: https://github.com/digitalfabrik/ehrenamtskarte/blob/7675f039be5b914ad9c1331cc39e615ff802b5f8/frontend/lib/map/map/screen_parent_resizer.dart

It required quite some fine-tuning to cover edge cases. Make sure that when the initial render of the map happens that it is already visible. This means it should not be covered by a route which hides the map.

maxammann avatar Feb 01 '22 16:02 maxammann