MapLayer
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class MapLayer : JsonObject
Inheritance: objectJsonObjectMapLayer
Inherited Members
Constructors
Properties
The attribution for the layer. Accepts valid HTML.
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.
public bool? AutoBind { get; set; }
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.
public double[] Extent { get; set; }
The bing map tile types. Possible options.
public MapLayersImagerySet? ImagerySet { get; set; }
The API key for the layer. Currently supported only for Bing (tm) tile layers.
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.
public string LocationField { get; set; }
The maximum symbol size for bubble layer symbols.
public double? MaxSize { get; set; }
The maximum zoom level at which to show this layer.
public double? MaxZoom { get; set; }
The minimum symbol size for bubble layer symbols.
public double? MinSize { get; set; }
The minimum zoom level at which to show this layer.
public double? MinZoom { get; set; }
The marker shape. Supported shapes are "pin" and "pinTarget".
public MapMarkersShape? Shape { get; set; }
The default style for shapes.
public MapLayerStyleSettings Style { get; set; }
public string[] Subdomains { get; set; }
The bubble layer symbol type. Supported symbols are "circle" and "square".
public MapSymbol? Symbol { get; set; }
public ClientHandlerDescriptor SymbolHandler { get; set; }
public string SymbolName { get; set; }
The data item field which contains the marker title. Requires the dataSource option to be set.
public string TitleField { get; set; }
public MapMarkerTooltip Tooltip { get; set; }
The layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".
public MapLayerType? Type { get; set; }
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.
public string UrlTemplate { get; set; }
The handler for the UrlTemplate
public string UrlTemplateHandler { get; set; }
The id for the UrlTemplate
public string UrlTemplateId { get; set; }
The value field for bubble layer symbols. The data item field should be a number.
public string ValueField { get; set; }
ViewContext
ViewContext
public ViewContext ViewContext { get; }
Methods
protected override void Serialize(IDictionary<string, object> json)
Overrides: