maui
maui copied to clipboard
Provide access to current map zoom level
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
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.