C# Класс ESRI.ArcGIS.Client.Toolkit.DataSources.GpsLayer

GPS Layer showing the current location and accuracy.
Наследование: GraphicsLayer, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AccuracyCircleSymbolProperty System.Windows.DependencyProperty
AnimateUpdatesProperty System.Windows.DependencyProperty
GeoPositionWatcherProperty System.Windows.DependencyProperty
GeometryServiceUrlProperty System.Windows.DependencyProperty
IsEnabledProperty System.Windows.DependencyProperty
LocationMarkerSymbolProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
AttachListeners void
BeginAnimateLocation void
DetachListeners void
GeoPositionWatcherPropertyChanged void
GetAccuracyInMapUnits double
GetAccuracyInMapUnitsFromScale double
GetMapUnits string
GpsLayer_PropertyChanged void
OnAccuracyCircleSymbolPropertyChanged void
OnGeoCoordinatePropertyChanged void
OnGeometryServiceUrlPropertyChanged void
OnIsEnabledPropertyChanged void
OnLocationMarkerSymbolPropertyChanged void
TryStartGps void
UpdateAccuracyCircle void
UpdateLocation void
UpdatePosition void
animationTimerAccuracy_Tick void
animationTimerLocation_Tick void
map_PropertyChanged void
quinticEaseOut double
watcher_PositionChanged void
watcher_StatusChanged void

Открытые методы

Метод Описание
GpsLayer ( ) : System

Initializes a new instance of the GpsLayer class.

Initialize ( ) : void

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the P:ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

Защищенные методы

Метод Описание
OnMapChanged ( Map oldValue, Map newValue ) : void

Override to know when a layer's Map property changes.

Приватные методы

Метод Описание
AttachListeners ( IGeoPositionWatcher geowatcher ) : void
BeginAnimateLocation ( MapPoint newLocation ) : void
DetachListeners ( IGeoPositionWatcher geowatcher ) : void
GeoPositionWatcherPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
GetAccuracyInMapUnits ( ) : double

Gets the horizontal accuracy in map units.

GetAccuracyInMapUnitsFromScale ( ) : double
GetMapUnits ( ) : string

Gets the map units from the map. This requires the map to be in either WGS84 or WebMercator spatial reference, or have at least one ArcGIS layer whos default spatial reference matches that of the map.

GpsLayer_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnAccuracyCircleSymbolPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnGeoCoordinatePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnGeometryServiceUrlPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsEnabledPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLocationMarkerSymbolPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TryStartGps ( ) : void

Attempts the start the geowatcher.

UpdateAccuracyCircle ( ) : void

Starts animation of the circle

UpdateLocation ( ) : void

Starts animating the location.

UpdatePosition ( GeoPosition position ) : void
animationTimerAccuracy_Tick ( object sender, EventArgs e ) : void

Handles the Tick event of the animationTimerAccuracy timer and animates radius of the accuracy circle.

animationTimerLocation_Tick ( object sender, EventArgs e ) : void

Handles the Tick event of the animationTimerLocation timer and animates the location point and center of the accuracy circle.

map_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
quinticEaseOut ( double t, double b, double c, double d ) : double
watcher_PositionChanged ( object sender, GeoPositionChangedEventArgs e ) : void

Handles the PositionChanged event of the watcher control.

watcher_StatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void

Handles the StatusChanged event of the watcher control.

Описание методов

GpsLayer() публичный Метод

Initializes a new instance of the GpsLayer class.
public GpsLayer ( ) : System
Результат System

Initialize() публичный Метод

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the P:ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

public Initialize ( ) : void
Результат void

OnMapChanged() защищенный Метод

Override to know when a layer's Map property changes.
protected OnMapChanged ( Map oldValue, Map newValue ) : void
oldValue Map Old map
newValue Map New map
Результат void

Описание свойств

AccuracyCircleSymbolProperty публичное статическое свойство

Identifies the AccuracyCircleSymbol dependency property.
public static DependencyProperty,System.Windows AccuracyCircleSymbolProperty
Результат System.Windows.DependencyProperty

AnimateUpdatesProperty публичное статическое свойство

Identifies the AnimateUpdates dependency property.
public static DependencyProperty,System.Windows AnimateUpdatesProperty
Результат System.Windows.DependencyProperty

GeoPositionWatcherProperty публичное статическое свойство

Identifies the GeoPositionWatcher attached dependency property.
public static DependencyProperty,System.Windows GeoPositionWatcherProperty
Результат System.Windows.DependencyProperty

GeometryServiceUrlProperty публичное статическое свойство

Identifies the GeometryServiceUrl dependency property.
public static DependencyProperty,System.Windows GeometryServiceUrlProperty
Результат System.Windows.DependencyProperty

IsEnabledProperty публичное статическое свойство

Identifies the IsEnabled dependency property.
public static DependencyProperty,System.Windows IsEnabledProperty
Результат System.Windows.DependencyProperty

LocationMarkerSymbolProperty публичное статическое свойство

Identifies the LocationMarkerSymbol dependency property.
public static DependencyProperty,System.Windows LocationMarkerSymbolProperty
Результат System.Windows.DependencyProperty