• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • Conversational UI
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin
    Desktop
    UI for WinForms UI for WPF UI for WinUI UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore Fiddler Everywhere
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler Classic JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class MapLayer

Inheritance
System.Object
MapLayer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll

Syntax

public class MapLayer : ICollection<MapVisualElement>, IEnumerable<MapVisualElement>, IEnumerable

Constructors

MapLayer()

Initializes a new instance of the MapLayer class.

Declaration
public 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
System.Collections.Generic.ICollection<T>.Count

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.IsReadOnly

IsUpdateSuspended

Gets a value indicating whether updates are suspended.

Declaration
public bool IsUpdateSuspended { get; }
Property Value
System.Boolean

true if updates are suspended; otherwise, false.

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
System.Collections.Generic.ICollection<T>.Add(T)

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
System.Collections.Generic.ICollection<T>.Clear()

Contains(MapVisualElement)

Declaration
public bool Contains(MapVisualElement item)
Parameters
MapVisualElement item

Returns
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.Contains(T)

CopyTo(MapVisualElement[], Int32)

Declaration
public void CopyTo(MapVisualElement[] array, int arrayIndex)
Parameters
MapVisualElement[] array

System.Int32 arrayIndex

Implements
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

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 true an update is performed.

GetEnumerator()

Declaration
public IEnumerator<MapVisualElement> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<MapVisualElement>

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

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
System.Collections.Generic.ICollection<T>.Remove(T)

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

Implements
System.Collections.IEnumerable.GetEnumerator()

Extension Methods

CommonExtensions.AddRange<T>(ICollection<T>, IEnumerable<T>)
CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.Clone<T>(IEnumerable<T>)
ExtensionMethodsEditor.CastCovariant<TFrom, TTo>(IEnumerable<TFrom>)
SvgExtentions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.