Open benlings opened 1 year ago
MapRenderer
OnMapReady
NativeMap.CameraMove
Xamarin.Forms.Maps.Map
Map.VisibleRegion is updated to match the camera position in the native map
Map.VisibleRegion
Map.VisibleRegion remains on its initial position.
Copy implementation of UpdateVisibleRegion from MapRenderer base class and call it with UpdateVisibleRegion(NativeMap.CameraPosition.Target); from the event handler.
UpdateVisibleRegion
UpdateVisibleRegion(NativeMap.CameraPosition.Target);
Description
Steps to Reproduce
MapRenderer
and inOnMapReady
, register an event listener withNativeMap.CameraMove
.Xamarin.Forms.Maps.Map
and export the above renderer subclass linked to this.Expected Behavior
Map.VisibleRegion
is updated to match the camera position in the native mapActual Behavior
Map.VisibleRegion
remains on its initial position.Basic Information
Environment
Show/Hide Visual Studio info
``` ```Build Logs
Screenshots
Reproduction Link
Workaround
Copy implementation of
UpdateVisibleRegion
from MapRenderer base class and call it withUpdateVisibleRegion(NativeMap.CameraPosition.Target);
from the event handler.