public MapDeviceLocationOptions GetDeviceLocationOptions()
Public Function GetDeviceLocationOptions() As MapDeviceLocationOptions
public MapDeviceLocationOptions GetDeviceLocationOptions()
Public Function GetDeviceLocationOptions() As MapDeviceLocationOptions
Exception | Description |
---|---|
System.InvalidOperationException | The active map view cannot be null |
var options = MapDeviceLocationService.Instance.GetDeviceLocationOptions(); var visibility = options.DeviceLocationVisibility; var navMode = options.NavigationMode; var trackUp = options.TrackUpNavigation; var showBuffer = options.ShowAccuracyBuffer;
var currentOptions = MapDeviceLocationService.Instance.GetDeviceLocationOptions(); if (currentOptions == null) return; currentOptions.DeviceLocationVisibility = true; currentOptions.NavigationMode = MappingDeviceLocationNavigationMode.KeepAtCenter; await QueuedTask.Run(() => { MapDeviceLocationService.Instance.SetDeviceLocationOptions(currentOptions); });
Target Platforms: Windows 11, Windows 10