ClassMapLayer
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapLayer : IEnumerable
Inheritance: objectMapLayer
Implements:
Constructors
MapLayer()
Initializes a new instance of the MapLayer class.
Declaration
public MapLayer()
MapLayer(string)
Initializes a new instance of the MapLayer class.
Properties
ClusterDistance
Gets or sets the cluster distance.
Declaration
public long ClusterDistance { get; set; }
Property Value
The cluster distance.
ClusterStrategy
Gets or sets the cluster strategy.
Declaration
public IMapClusterStrategy ClusterStrategy { get; set; }
Property Value
The cluster strategy.
ColorizationStrategy
Gets or sets the colorization strategy.
Declaration
public IColorizationStrategy ColorizationStrategy { get; set; }
Property Value
The colorization strategy.
IsUpdateSuspended
Gets a value indicating whether updates are suspended.
Declaration
public bool IsUpdateSuspended { get; }
Property Value
true if updates are suspended; otherwise, false.
Name
Gets or sets the name.
Overlays
Gets the overlays contained within this layer.
Declaration
public ReadOnlyCollection<MapVisualElement> Overlays { get; }
Property Value
ReadOnlyCollection<MapVisualElement>
The overlays.
Viewport
Gets the viewport.
Declaration
public IMapViewport Viewport { get; }
Property Value
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
Methods
Add(MapVisualElement)
Declaration
public void Add(MapVisualElement item)
Parameters
item
AddRange(IEnumerable<MapVisualElement>)
Adds the specified overlays to the layer.
Declaration
public void AddRange(IEnumerable<MapVisualElement> items)
Parameters
items
IEnumerable<MapVisualElement>
The items.
AddRange(params MapVisualElement[])
Adds the specified overlays to the layer.
Declaration
public void AddRange(params MapVisualElement[] items)
Parameters
items
The items.
Clear()
Declaration
public void Clear()
Contains(MapVisualElement)
Declaration
public bool Contains(MapVisualElement item)
Parameters
item
Returns
CopyTo(MapVisualElement[], int)
Declaration
public void CopyTo(MapVisualElement[] array, int arrayIndex)
Parameters
array
arrayIndex
EndUpdate()
Resumes updates and performs an update.
Declaration
public void EndUpdate()
EndUpdate(bool)
Resumes updates and performs an update based on the provided parameter
Declaration
public void EndUpdate(bool update)
Parameters
update
if set to true an update is performed.
GetEnumerator()
Declaration
public IEnumerator<MapVisualElement> GetEnumerator()
Returns
IEnumerator<MapVisualElement>
HitTest(PointG)
Hit tests the overlays in the layer.
Declaration
public MapVisualElement HitTest(PointG point)
Parameters
point
The point.
Returns
MapVisualElement.
HitTest(PointG, PointL)
Hit tests the overlays in the layer.
Declaration
protected virtual MapVisualElement HitTest(PointG pointG, PointL pointL)
Parameters
pointG
The point g.
pointL
The point l.
Returns
MapVisualElement.
HitTest(PointL)
Hit tests the overlays in the layer.
Declaration
public MapVisualElement HitTest(PointL point)
Parameters
point
The point.
Returns
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
overlay
Paint(IGraphics, IMapViewport)
Paints the layer to the specified graphics.
Declaration
public virtual void Paint(IGraphics graphics, IMapViewport viewport)
Parameters
graphics
The graphics.
viewport
The viewport.
Remove(MapVisualElement)
Declaration
public bool Remove(MapVisualElement item)
Parameters
item
Returns
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
viewport
The viewport.
action
The action.