Method ScreenToLocation
ScreenToLocation(Point)
Converts screen coordinates relative to the upper-left corner of the map view to a location in map coordinates.
Declaration
public MapPoint ScreenToLocation(Point screenPoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.Point | screenPoint | The screen coordinate, in device-independent pixels (DIPs). |
Returns
Type | Description |
---|---|
MapPoint | A MapPoint in map coordinates if this view is initialzied and has a loaded Map; otherwise |
Remarks
To call this method, assign a map to the map view, ensure that it is loaded and the draw status is Completed.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.0 - 200.6 |