New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapLayer : IEnumerable

Inheritance: objectMapLayer

Implements: IEnumerable

Constructors

Initializes a new instance of the MapLayer class.

C#
public MapLayer()

Initializes a new instance of the MapLayer class.

C#
public MapLayer(string name)
Parameters:namestring

The name.

Properties

Gets or sets the cluster distance.

C#
public long ClusterDistance { get; set; }
Property Value:

The cluster distance.

Gets or sets the cluster strategy.

C#
public IMapClusterStrategy ClusterStrategy { get; set; }
Property Value:

The cluster strategy.

Gets or sets the colorization strategy.

C#
public IColorizationStrategy ColorizationStrategy { get; set; }
Property Value:

The colorization strategy.

C#
public int Count { get; }
C#
public bool IsReadOnly { get; }

Gets a value indicating whether updates are suspended.

C#
public bool IsUpdateSuspended { get; }
Property Value:

true if updates are suspended; otherwise, false.

C#
public bool IsVisible { get; set; }

Gets or sets the name.

C#
public string Name { get; set; }
Property Value:

The name.

Gets the overlays contained within this layer.

C#
public ReadOnlyCollection<MapVisualElement> Overlays { get; }
Property Value:

The overlays.

Gets the viewport.

C#
public IMapViewport Viewport { get; }
Property Value:

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.

C#
public ReadOnlyCollection<MapVisualElement> VisibleOverlays { get; }

Methods

C#
public void Add(MapVisualElement item)
Parameters:itemMapVisualElement

Adds the specified overlays to the layer.

C#
public void AddRange(IEnumerable<MapVisualElement> items)
Parameters:itemsIEnumerable<MapVisualElement>

The items.

Adds the specified overlays to the layer.

C#
public void AddRange(params MapVisualElement[] items)
Parameters:itemsMapVisualElement[]

The items.

Suspends updates.

C#
public void BeginUpdate()
C#
public void Clear()
C#
public bool Contains(MapVisualElement item)
Parameters:itemMapVisualElementReturns:

bool

C#
public void CopyTo(MapVisualElement[] array, int arrayIndex)
Parameters:arrayMapVisualElement[]arrayIndexint

Resumes updates and performs an update.

C#
public void EndUpdate()

Resumes updates and performs an update based on the provided parameter

C#
public void EndUpdate(bool update)
Parameters:updatebool

if set to true an update is performed.

C#
public IEnumerator<MapVisualElement> GetEnumerator()
Returns:

IEnumerator<MapVisualElement>

Hit tests the overlays in the layer.

C#
protected virtual MapVisualElement HitTest(PointG pointG, PointL pointL)
Parameters:pointGPointG

The point g.

pointLPointL

The point l.

Returns:

MapVisualElement

MapVisualElement.

Hit tests the overlays in the layer.

C#
public MapVisualElement HitTest(PointG point)
Parameters:pointPointG

The point.

Returns:

MapVisualElement

MapVisualElement.

Hit tests the overlays in the layer.

C#
public MapVisualElement HitTest(PointL point)
Parameters:pointPointL

The point.

Returns:

MapVisualElement

MapVisualElement.

C#
protected virtual void Invalidate()

Called when the location property of an overlay changes.

C#
public virtual void OverlayLocationChanged(MapVisualElement overlay)
Parameters:overlayMapVisualElement

Paints the layer to the specified graphics.

C#
public virtual void Paint(IGraphics graphics, IMapViewport viewport)
Parameters:graphicsIGraphics

The graphics.

viewportIMapViewport

The viewport.

C#
public bool Remove(MapVisualElement item)
Parameters:itemMapVisualElementReturns:

bool

Updates the colorizer color of all overlays.

C#
public virtual void UpdateOverlaysColorizerColor()

Called when the viewport is updated.

C#
public virtual void ViewportUpdated(IMapViewport viewport, ViewportChangeAction action)
Parameters:viewportIMapViewport

The viewport.

actionViewportChangeAction

The action.