C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.GpsLayer

GPS Layer showing the current location and accuracy.
Inheritance: GraphicsLayer, INotifyPropertyChanged
Datei anzeigen Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Public Properties

Property Type Description
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

Property Type Description
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

Public Methods

Method Description
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.

Protected Methods

Method Description
OnMapChanged ( Map oldValue, Map newValue ) : void

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

Private Methods

Method Description
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.

Method Details

GpsLayer() public method

Initializes a new instance of the GpsLayer class.
public GpsLayer ( ) : System
return System

Initialize() public method

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
return void

OnMapChanged() protected method

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
return void

Property Details

AccuracyCircleSymbolProperty public_oe static_oe property

Identifies the AccuracyCircleSymbol dependency property.
public static DependencyProperty,System.Windows AccuracyCircleSymbolProperty
return System.Windows.DependencyProperty

AnimateUpdatesProperty public_oe static_oe property

Identifies the AnimateUpdates dependency property.
public static DependencyProperty,System.Windows AnimateUpdatesProperty
return System.Windows.DependencyProperty

GeoPositionWatcherProperty public_oe static_oe property

Identifies the GeoPositionWatcher attached dependency property.
public static DependencyProperty,System.Windows GeoPositionWatcherProperty
return System.Windows.DependencyProperty

GeometryServiceUrlProperty public_oe static_oe property

Identifies the GeometryServiceUrl dependency property.
public static DependencyProperty,System.Windows GeometryServiceUrlProperty
return System.Windows.DependencyProperty

IsEnabledProperty public_oe static_oe property

Identifies the IsEnabled dependency property.
public static DependencyProperty,System.Windows IsEnabledProperty
return System.Windows.DependencyProperty

LocationMarkerSymbolProperty public_oe static_oe property

Identifies the LocationMarkerSymbol dependency property.
public static DependencyProperty,System.Windows LocationMarkerSymbolProperty
return System.Windows.DependencyProperty