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

Definition

Constructors

C#
public MapLayer(Map map)
Parameters:mapMap

Properties

The attribution for the layer. Accepts valid HTML.

C#
public string Attribution { get; set; }

If set to false the layer will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.

C#
public bool? AutoBind { get; set; }

The culture to be used for the bing map tiles.

C#
public string Culture { get; set; }
C#
public DataSource DataSource { 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#
public double[] Extent { get; set; }

The bing map tile types. Possible options.

C#
public MapLayersImagerySet? 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 opacity for the layer.

C#
public double? Opacity { get; set; }

The marker shape. Supported shapes are "pin" and "pinTarget".

C#
public MapMarkersShape? Shape { get; set; }
C#
public string ShapeName { get; set; }

The default style for shapes.

C#
public MapLayerStyleSettings Style { get; set; }
C#
public string[] Subdomains { get; set; }

The bubble layer symbol type. Supported symbols are "circle" and "square".

C#
public MapSymbol? Symbol { get; set; }
C#
public ClientHandlerDescriptor SymbolHandler { get; set; }
C#
public string SymbolName { 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; }
C#
public MapMarkerTooltip Tooltip { get; set; }

The layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".

C#
public MapLayerType? Type { get; set; }
C#
public IUrlGenerator UrlGenerator { get; }

The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.

C#
public string UrlTemplate { get; set; }

The handler for the UrlTemplate

C#
public string UrlTemplateHandler { get; set; }

The id for the UrlTemplate

C#
public string UrlTemplateId { get; set; }

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

C#
public string ValueField { get; set; }

ViewContext

ViewContext

C#
public ViewContext ViewContext { get; }

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 Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)