New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The configuration of the map layers. The layer type is determined by the value of the type field.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class MapLayer : StateManager, IMarkableStateManager, IStateManager

Inheritance: objectStateManagerMapLayer

Implements: IMarkableStateManagerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public MapLayer()

Properties

The attribution for the layer. Accepts valid HTML.

C#
public string Attribution { get; set; }

The ID of RadClientDataSource control to which the layer will be data bound.

C#
public string ClientDataSourceID { get; set; }

The culture to be used for the bing map tiles.

C#
public string Culture { get; set; }

Specifies the extent of the region covered by this layer. The layer will be hidden when the specified area is out of view.Accepts a four-element array that specifies the extent covered by this layer: North-West lat, longitude, South-East latitude, longitude.If not specified, the layer is always visible.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Extent ExtentSettings { get; }

The bing map tile types. Possible options:

C#
public string ImagerySet { get; set; }

The API key for the layer. Currently supported only for Bing (tm) tile layers.

C#
public string Key { get; set; }

The data item field which contains the marker (symbol) location. The field should be an array with two numbers - latitude and longitude in decimal degrees.Requires the dataSource option to be set.Only applicable to "marker" and "bubble" layers.

C#
public string LocationField { get; set; }

The maximum symbol size for bubble layer symbols.

C#
public double MaxSize { get; set; }

The maximum zoom level at which to show this layer.

C#
public double MaxZoom { get; set; }

The minimum symbol size for bubble layer symbols.

C#
public double MinSize { get; set; }

The minimum zoom level at which to show this layer.

C#
public double MinZoom { get; set; }

The the opacity for the layer.

C#
public double Opacity { get; set; }

The default marker shape for data-bound markers. The following pre-defined marker shapes are available:Marker shapes are implemented as CSS classes on the marker element (span.k-marker). For example "pinTarget" is rendered as "k-marker-pin-target".

C#
[TypeConverter(typeof(MarkerShapeStringConverter))]
public string Shape { get; set; }

The default style for shapes.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Style StyleSettings { get; }

A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.

C#
[TypeConverter(typeof(ListConverter))]
public string[] Subdomains { get; set; }

The symbol to use for bubble layers. Possible values: circle, square

C#
public string Symbol { get; set; }

The size of the image tile in pixels.

C#
public double TileSize { get; set; }

The data item field which contains the marker title. Requires the dataSource option to be set.

C#
public string TitleField { get; set; }

The default Kendo UI Tooltip options for data-bound markers.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Tooltip TooltipSettings { get; }

The layer type. Supported types are "tile" and "shape".

C#
public LayerType Type { get; set; }

The URL template for tile layers. Template variables:

C#
public string UrlTemplate { get; set; }

The value field for bubble layer symbols. The data item field should be a number.

C#
public string ValueField { get; set; }

The zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).

C#
public double ZIndex { get; set; }

Methods

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()