dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.95k stars 1.7k forks source link

Provide access to current map zoom level #11332

Open smitha-cgi opened 1 year ago

smitha-cgi commented 1 year ago

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

ghost commented 1 year ago

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.