public class MapDeviceLocationService : IMapDeviceLocationService
Public Class MapDeviceLocationService Implements IMapDeviceLocationService
public class MapDeviceLocationService : IMapDeviceLocationService
Public Class MapDeviceLocationService Implements IMapDeviceLocationService
To connect to a location device refer to ArcGIS.Desktop.Core.DeviceLocation.DeviceLocationService.Open
var currentOptions = MapDeviceLocationService.Instance.GetDeviceLocationOptions(); if (currentOptions == null) return; currentOptions.DeviceLocationVisibility = true; currentOptions.NavigationMode = MappingDeviceLocationNavigationMode.KeepAtCenter; await QueuedTask.Run(() => { MapDeviceLocationService.Instance.SetDeviceLocationOptions(currentOptions); });
await QueuedTask.Run(() =>
{
MapDeviceLocationService.Instance.ZoomOrPanToCurrentLocation(true);
});
System.Object
ArcGIS.Desktop.Mapping.DeviceLocation.MapDeviceLocationService
Target Platforms: Windows 10, Windows 8.1