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
22.23k stars 1.76k forks source link

MAUI Map set internal padding to move native controls and images #18627

Open Cybrosys opened 1 year ago

Cybrosys commented 1 year ago

Description

I would like to be able to set the padding of the map view in order to move around its internal visual elements. This is supported on GoogleMap by calling setPadding and MKMapView by using setVisibleMapRect with edgePadding.

Public API Changes

Map map = new Map
{
    Padding = new Thickness(0, 0, 0, 32)
};

Intended Use-Case

In my app I want to show a bottom sheet with rounded corners that can resize in height based on its content and user input. I need to be able to shift the map's internal UI elements accordingly so they're always visible to the user.

This can be seen in action in Google Maps or similar apps that have a resizable bottom sheet.

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.