IMap.OpenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenAsync(Placemark, MapLaunchOptions) |
Open the installed application to a specific location with launch options. |
OpenAsync(Double, Double, MapLaunchOptions) |
Open the installed application to a specific location with launch options. |
OpenAsync(Placemark, MapLaunchOptions)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location with launch options.
public:
System::Threading::Tasks::Task ^ OpenAsync(Microsoft::Maui::Devices::Sensors::Placemark ^ placemark, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public System.Threading.Tasks.Task OpenAsync (Microsoft.Maui.Devices.Sensors.Placemark placemark, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
abstract member OpenAsync : Microsoft.Maui.Devices.Sensors.Placemark * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
Public Function OpenAsync (placemark As Placemark, options As MapLaunchOptions) As Task
Parameters
- placemark
- Placemark
Placemark to open in the map application.
- options
- MapLaunchOptions
Launch options to use.
Returns
A Task object with the current status of the asynchronous operation.
Applies to
OpenAsync(Double, Double, MapLaunchOptions)
- Source:
- Map.shared.cs
- Source:
- Map.shared.cs
Open the installed application to a specific location with launch options.
public:
System::Threading::Tasks::Task ^ OpenAsync(double latitude, double longitude, Microsoft::Maui::ApplicationModel::MapLaunchOptions ^ options);
public System.Threading.Tasks.Task OpenAsync (double latitude, double longitude, Microsoft.Maui.ApplicationModel.MapLaunchOptions options);
abstract member OpenAsync : double * double * Microsoft.Maui.ApplicationModel.MapLaunchOptions -> System.Threading.Tasks.Task
Public Function OpenAsync (latitude As Double, longitude As Double, options As MapLaunchOptions) As Task
Parameters
- latitude
- Double
Target latitude.
- longitude
- Double
Target longitude.
- options
- MapLaunchOptions
Launch options to use.
Returns
A Task object with the current status of the asynchronous operation.