MapLayerCollection
Maintains the map's ordered layers and forwards viewport changes and hit tests to them.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapLayerCollection : IEnumerable
Inheritance: objectMapLayerCollection
Implements:
Constructors
Initializes a new instance of the MapLayerCollection class.
Properties
Gets whether the layer collection is read-only; this collection allows modification.
public bool IsReadOnly { get; }
Gets the viewport shared with layers added to this collection.
public IMapViewport Viewport { get; }
Methods
Adds a layer, associates it with this collection's viewport, and invalidates the map.
public void Add(MapLayer item)
The layer to add.
Exceptions: InvalidOperationExceptionA layer with the same name is already in the collection.
Suspends updates in all layers.
public void BeginUpdate()
Removes all layers and clears their viewport references.
public void Clear()
Resumes updates in all layers.
public void EndUpdate()
Returns an enumerator over the layers in their collection order.
public IEnumerator<MapLayer> GetEnumerator()
IEnumerator<MapLayer>
An enumerator for the layers.
Hit tests the overlays in all visible layers.
public MapVisualElement HitTest(Point location)
A point in control coordinates.
Returns:Hit tests the overlays in all layers.
public MapVisualElement HitTest(PointG point)
A point in geo coordinates.
Returns:MapVisualElement.
Hit tests the overlays in all layers.
public MapVisualElement HitTest(PointL point)
A point in map coordinates.
Returns:MapVisualElement.
Invalidates the associated map element when the viewport is a map element.
public void Invalidate()
Notifies every layer that the map viewport has changed.
public virtual void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
The updated viewport.
actionViewportChangeActionThe kinds of viewport changes to process.