C# Класс csDataServerPlugin.PoiGraphic

Наследование: Graphic
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
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

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

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

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

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

public OpenPopup ( MapPoint tapPos, TapMode tm ) : void
tapPos MapPoint
tm TapMode
Результат void

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

public PoiGraphic ( ) : Caliburn.Micro
Результат Caliburn.Micro

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

public PoiGraphic_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Результат void

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

public PoiGraphic_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Результат void

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

public SetGeometry ( ESRI.ArcGIS.Client.Geometry.Geometry g ) : void
g ESRI.ArcGIS.Client.Geometry.Geometry
Результат void

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

This function is calles from multiple places outside the class!!
public TappedByExternalMapControlMapGesture ( MapPoint tapPos ) : void
tapPos MapPoint
Результат void

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

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

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

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
Результат void

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

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