MapLayer
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapLayer : IEnumerable
Inheritance: objectMapLayer
Implements:
Constructors
Initializes a new instance of the MapLayer class.
public MapLayer()
Properties
Gets or sets the cluster distance.
public long ClusterDistance { get; set; }
The cluster distance.
Gets or sets the cluster strategy.
public IMapClusterStrategy ClusterStrategy { get; set; }
The cluster strategy.
Gets or sets the colorization strategy.
public IColorizationStrategy ColorizationStrategy { get; set; }
The colorization strategy.
public bool IsReadOnly { get; }
Gets a value indicating whether updates are suspended.
public bool IsUpdateSuspended { get; }
true if updates are suspended; otherwise, false.
Gets the overlays contained within this layer.
public ReadOnlyCollection<MapVisualElement> Overlays { get; }
The overlays.
Gets the viewport.
public IMapViewport Viewport { get; }
The viewport.
Gets the currently visible overlays in this layer. When cluster strategy is applied the visible overlays may differ from the user added ones.
public ReadOnlyCollection<MapVisualElement> VisibleOverlays { get; }
Methods
Adds the specified overlays to the layer.
public void AddRange(IEnumerable<MapVisualElement> items)
The items.
Adds the specified overlays to the layer.
public void AddRange(params MapVisualElement[] items)
The items.
Suspends updates.
public void BeginUpdate()
public void Clear()
public void CopyTo(MapVisualElement[] array, int arrayIndex)
Resumes updates and performs an update.
public void EndUpdate()
Resumes updates and performs an update based on the provided parameter
Hit tests the overlays in the layer.
public MapVisualElement HitTest(PointG point)
The point.
Returns:MapVisualElement.
Hit tests the overlays in the layer.
public MapVisualElement HitTest(PointL point)
The point.
Returns:MapVisualElement.
protected virtual void Invalidate()
Called when the location property of an overlay changes.
public virtual void OverlayLocationChanged(MapVisualElement overlay)
Paints the layer to the specified graphics.
public virtual void Paint(IGraphics graphics, IMapViewport viewport)
The graphics.
viewportIMapViewportThe viewport.
Updates the colorizer color of all overlays.
public virtual void UpdateOverlaysColorizerColor()
Called when the viewport is updated.
public virtual void ViewportUpdated(IMapViewport viewport, ViewportChangeAction action)
The viewport.
actionViewportChangeActionThe action.