C# Class csDataServerPlugin.PoiGraphic

Inheritance: Graphic
Show file Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method 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

Method 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 method

public CloseCallout ( ) : void
return void

OpenPopup() public method

public OpenPopup ( MapPoint tapPos, TapMode tm ) : void
tapPos MapPoint
tm TapMode
return void

PoiGraphic() public method

public PoiGraphic ( ) : Caliburn.Micro
return Caliburn.Micro

PoiGraphic_MouseLeftButtonDown() public method

public PoiGraphic_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

PoiGraphic_MouseLeftButtonUp() public method

public PoiGraphic_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

SetGeometry() public method

public SetGeometry ( ESRI.ArcGIS.Client.Geometry.Geometry g ) : void
g ESRI.ArcGIS.Client.Geometry.Geometry
return void

TappedByExternalMapControlMapGesture() public method

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

UpdateForCurrentMapExtent() public method

public UpdateForCurrentMapExtent ( ) : void
return void

UpdateScale() public method

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

UpdateVisibility() public method

public UpdateVisibility ( ) : void
return void