C# Class csDataServerPlugin.PoiGraphic

Inheritance: Graphic
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Méthode Description
CloseCallout ( ) : void
OpenPopup ( MapPoint tapPos, TapMode tm ) : void
PoiGraphic ( ) : Caliburn.Micro
PoiGraphic_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
PoiGraphic_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
SetGeometry ( ESRI.ArcGIS.Client.Geometry.Geometry g ) : void
TappedByExternalMapControlMapGesture ( MapPoint tapPos ) : void

This function is calles from multiple places outside the class!!

UpdateForCurrentMapExtent ( ) : void
UpdateScale ( bool forceUpdate = false ) : void

Updates the scale of the poi graphics

UpdateVisibility ( ) : void

Private Methods

Méthode Description
AddMediaToFloatingElements ( MapPoint tapPos ) : void

Add a media element (photo) to the floating elements collection. Based on the current tap position, find a suitable location for the photo's. In addition, in case multiple photo's need to be added, offset them a bit so they don't overlap and cover each other. Also make sure that you don't add a photo twice (based on the floating element's title).

ComputeStartPositionAndOffset ( MapPoint tapPos, System.Windows.Vector &offset ) : Point

Compute suitable start position within the screen boundary.

EndTapped ( ) : void
FireIconLongTapped ( ) : void
LongTappedTimerElapsed ( object sender, EventArgs e ) : void
MapControlExtentChanged ( object sender, ExtentEventArgs e ) : void
StartLongTappedTimer ( ) : void

The icon is clicked (mouse or touch) set timer to wait for x msec (while icon still touched); then fire event

Stop ( ) : void
StopLongTappedTimer ( ) : void

Tapped ( MapPoint tapPos ) : void
UpdateCalloutActions ( ) : void

Method Details

CloseCallout() public méthode

public CloseCallout ( ) : void
Résultat void

OpenPopup() public méthode

public OpenPopup ( MapPoint tapPos, TapMode tm ) : void
tapPos MapPoint
tm TapMode
Résultat void

PoiGraphic() public méthode

public PoiGraphic ( ) : Caliburn.Micro
Résultat Caliburn.Micro

PoiGraphic_MouseLeftButtonDown() public méthode

public PoiGraphic_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Résultat void

PoiGraphic_MouseLeftButtonUp() public méthode

public PoiGraphic_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Résultat void

SetGeometry() public méthode

public SetGeometry ( ESRI.ArcGIS.Client.Geometry.Geometry g ) : void
g ESRI.ArcGIS.Client.Geometry.Geometry
Résultat void

TappedByExternalMapControlMapGesture() public méthode

This function is calles from multiple places outside the class!!
public TappedByExternalMapControlMapGesture ( MapPoint tapPos ) : void
tapPos MapPoint
Résultat void

UpdateForCurrentMapExtent() public méthode

public UpdateForCurrentMapExtent ( ) : void
Résultat void

UpdateScale() public méthode

Updates the scale of the poi graphics
public UpdateScale ( bool forceUpdate = false ) : void
forceUpdate bool When true, the scale update will be performed. When false(default) the scale update will only be performed if the scale has updated since the last call to UpdateScale
Résultat void

UpdateVisibility() public méthode

public UpdateVisibility ( ) : void
Résultat void