Class MapLayer
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class MapLayer : ICollection<MapVisualElement>, IEnumerable<MapVisualElement>, IEnumerable
Constructors
MapLayer()
MapLayer(String)
Initializes a new instance of the MapLayer class.
Declaration
public MapLayer(string name)
Parameters
System.String
name
The name. |
Properties
ClusterDistance
Gets or sets the cluster distance.
Declaration
public long ClusterDistance { get; set; }
Property Value
System.Int64
The cluster distance. |
ClusterStrategy
Gets or sets the cluster strategy.
Declaration
public IMapClusterStrategy ClusterStrategy { get; set; }
Property Value
IMapClusterStrategy
The cluster strategy. |
ColorizationStrategy
Gets or sets the colorization strategy.
Declaration
public IColorizationStrategy ColorizationStrategy { get; set; }
Property Value
IColorizationStrategy
The colorization strategy. |
Count
Declaration
public int Count { get; }
Property Value
System.Int32
|
Implements
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Implements
IsUpdateSuspended
Gets a value indicating whether updates are suspended.
Declaration
public bool IsUpdateSuspended { get; }
Property Value
System.Boolean
|
IsVisible
Declaration
public bool IsVisible { get; set; }
Property Value
System.Boolean
|
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
System.String
The name. |
Overlays
Gets the overlays contained within this layer.
Declaration
public ReadOnlyCollection<MapVisualElement> Overlays { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<MapVisualElement>
The overlays. |
Viewport
Gets the viewport.
Declaration
public IMapViewport Viewport { get; }
Property Value
IMapViewport
The viewport. |
VisibleOverlays
Gets the currently visible overlays in this layer. When cluster strategy is applied the visible overlays may differ from the user added ones.
Declaration
public ReadOnlyCollection<MapVisualElement> VisibleOverlays { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<MapVisualElement>
|
Methods
Add(MapVisualElement)
Declaration
public void Add(MapVisualElement item)
Parameters
MapVisualElement
item
|
Implements
AddRange(IEnumerable<MapVisualElement>)
Adds the specified overlays to the layer.
Declaration
public void AddRange(IEnumerable<MapVisualElement> items)
Parameters
System.Collections.Generic.IEnumerable<MapVisualElement>
items
The items. |
AddRange(MapVisualElement[])
Adds the specified overlays to the layer.
Declaration
public void AddRange(params MapVisualElement[] items)
Parameters
MapVisualElement[]
items
The items. |
BeginUpdate()
Suspends updates.
Declaration
public void BeginUpdate()
Clear()
Declaration
public void Clear()
Implements
Contains(MapVisualElement)
Declaration
public bool Contains(MapVisualElement item)
Parameters
MapVisualElement
item
|
Returns
System.Boolean
|
Implements
CopyTo(MapVisualElement[], Int32)
Declaration
public void CopyTo(MapVisualElement[] array, int arrayIndex)
Parameters
MapVisualElement[]
array
|
System.Int32
arrayIndex
|
Implements
EndUpdate()
Resumes updates and performs an update.
Declaration
public void EndUpdate()
EndUpdate(Boolean)
Resumes updates and performs an update based on the provided parameter
Declaration
public void EndUpdate(bool update)
Parameters
System.Boolean
update
if set to |
GetEnumerator()
Declaration
public IEnumerator<MapVisualElement> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<MapVisualElement>
|
Implements
HitTest(PointG)
Hit tests the overlays in the layer.
Declaration
public MapVisualElement HitTest(PointG point)
Parameters
PointG
point
The point. |
Returns
MapVisualElement
MapVisualElement. |
HitTest(PointG, PointL)
Hit tests the overlays in the layer.
Declaration
protected virtual MapVisualElement HitTest(PointG pointG, PointL pointL)
Parameters
PointG
pointG
The point g. |
PointL
pointL
The point l. |
Returns
MapVisualElement
MapVisualElement. |
HitTest(PointL)
Hit tests the overlays in the layer.
Declaration
public MapVisualElement HitTest(PointL point)
Parameters
PointL
point
The point. |
Returns
MapVisualElement
MapVisualElement. |
Invalidate()
Declaration
protected virtual void Invalidate()
OverlayLocationChanged(MapVisualElement)
Called when the location property of an overlay changes.
Declaration
public virtual void OverlayLocationChanged(MapVisualElement overlay)
Parameters
MapVisualElement
overlay
|
Paint(IGraphics, IMapViewport)
Paints the layer to the specified graphics.
Declaration
public virtual void Paint(IGraphics graphics, IMapViewport viewport)
Parameters
IGraphics
graphics
The graphics. |
IMapViewport
viewport
The viewport. |
Remove(MapVisualElement)
Declaration
public bool Remove(MapVisualElement item)
Parameters
MapVisualElement
item
|
Returns
System.Boolean
|
Implements
UpdateOverlaysColorizerColor()
Updates the colorizer color of all overlays.
Declaration
public virtual void UpdateOverlaysColorizerColor()
ViewportUpdated(IMapViewport, ViewportChangeAction)
Called when the viewport is updated.
Declaration
public virtual void ViewportUpdated(IMapViewport viewport, ViewportChangeAction action)
Parameters
IMapViewport
viewport
The viewport. |
ViewportChangeAction
action
The action. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|