Description
I want to know the current map zoom level for various reasons. I can get it on Android using this:
var mapHandler = (IMapHandler?)map.Handler;
var googleMap = mapHandler?.Map;
if (mapHandler is not null && googleMap is not null)
{
currentZoom = googleMap.CameraPosition.Zoom;
}
(Note that it seems far more complicated on iOS)
I would prefer to simply be able to access map.Zoom instead.
Public API Changes
Add a Zoom property to the Microsoft.Maui.Controls.Maps.Map class which returns the Android/iOS map control zoom level.
Intended Use-Case
Make it easier to get current zoom level
Description
I want to know the current map zoom level for various reasons. I can get it on Android using this:
(Note that it seems far more complicated on iOS)
I would prefer to simply be able to access map.Zoom instead.
Public API Changes
Add a Zoom property to the Microsoft.Maui.Controls.Maps.Map class which returns the Android/iOS map control zoom level.
Intended Use-Case
Make it easier to get current zoom level