Create a custom map class and a handler for it, and inside that handler register for CameraMove events from the underlying GoogleMap (either via SetOnCameraMoveListener or the CameraMove event). When you do this, the Maui Map's VisibleRegion property no longer updates when you move the map. In particular, the Center property always returns the map's initial location.
Comment out the += to the CameraMove event, or the call to SetOnCameraMoveListener, and VisibleRegion.Center will update again. This is very broken, and it is a regression from Xamarin.Forms.
Description
Create a custom map class and a handler for it, and inside that handler register for CameraMove events from the underlying GoogleMap (either via SetOnCameraMoveListener or the CameraMove event). When you do this, the Maui Map's VisibleRegion property no longer updates when you move the map. In particular, the Center property always returns the map's initial location.
Comment out the += to the CameraMove event, or the call to SetOnCameraMoveListener, and VisibleRegion.Center will update again. This is very broken, and it is a regression from Xamarin.Forms.
cf https://github.com/dotnet/maui/issues/13186 - I mistakenly closed this thinking the issue was fixed. It was not.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/mfeingol/repros/tree/master/MapVisibleRegionRepro
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
14
Did you find any workaround?
No workaround.
Relevant log output
No response