Adds an object to a specific location on a layer

Namespace: Ico.Ewx
Assembly: EwxLayer (in EwxLayer.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public void AddToLocation(
	FrameworkElement element,
	double latitude,
	double longitude,
	string layerName
)
Visual Basic
Public Sub AddToLocation ( _
	element As FrameworkElement, _
	latitude As Double, _
	longitude As Double, _
	layerName As String _
)
JScript
public function AddToLocation(
	element : FrameworkElement, 
	latitude : double, 
	longitude : double, 
	layerName : String
)

Parameters

element
Type: System.Windows..::..FrameworkElement
The element to add
latitude
Type: System..::..Double
The latitude of the element
longitude
Type: System..::..Double
The longitude of the element
layerName
Type: System..::..String
The layer where to add the element. If Null or Empty the element is added to the root

Remarks

ELEMENT IS ADDED DIRECTLY TO THE DISPLAY WITHOUT ADAPTING IT TO THE ZOOM

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException Fires an exception if the lat/long coordinate are not valid, for example if they are out of the bounds of the default region or if they are higher than MaxLatitude/MaxLongitude or lower then MinLatitude/MinLongitude
System..::..InvalidOperationException The EwxLayer should be part of a GraphWorX display to perform this operation

See Also