Layers
configurationThe configuration of the map layers. The layer type is determined by the value of the type field.
layers
Arraylayers.attribution
StringThe attribution for the layer. Accepts valid HTML.
Attribution supplied by remote providers, such as Bing, is HTML-encoded before it is rendered. User-provided attribution is rendered as HTML.
layers.autoBind
BooleanIf 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.
Setting
autoBindtofalseis useful when multiple layers (or widgets) are bound to the same data source. Disabling automatic binding ensures that the shared data source doesn't make more than one request to the remote service.
Default: true
layers.culture
StringThe culture to be used for the bing map tiles.
Default: "en-US"
layers.dataSource
Object|Array|kendo.data.DataSourceThe data source of the layer. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource instance.
layers.extent
Array|kendo.dataviz.map.ExtentSpecifies 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.
layers.imagerySet
StringThe bing map tile types. Possible options:
* aerial - Aerial imagery.
* aerialWithLabels - Aerial imagery with a road overlay.
* birdseye - Bird’s eye (oblique-angle) imagery
* birdseyeWithLabels - Bird’s eye imagery with a road overlay.
* road - Roads without additional imagery. (default)
Default: "road"
layers.key
StringThe API key for the layer. Currently supported only for Bing (tm) tile layers.
layers.locationField
StringThe 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.
Default: "location"
layers.maxSize
NumberThe maximum symbol size for bubble layer symbols.
Default: 100
layers.maxZoom
NumberThe maximum zoom level at which to show this layer.
layers.minSize
NumberThe minimum symbol size for bubble layer symbols.
Setting non-zero value will distort symbol area to value ratio.
Default: 0
layers.minZoom
NumberThe minimum zoom level at which to show this layer.
layers.opacity
NumberThe opacity for the layer.
Default: 1
layers.shape
StringThe default marker shape for data-bound markers. The following pre-defined marker shapes are available:
- pinTarget
- pin
Marker shapes are implemented as CSS classes on the marker element (span.k-marker). For example "pinTarget" is rendered as "k-marker-pin-target".
Default: "pinTarget"
layers.style
ObjectThe default style for shapes.
layers.subdomains
ArrayA list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.
layers.symbol
String|FunctionThe symbol to use for bubble layers. Possible values:
- "circle" - A circle.
- "square" - A square symbol.
- function - An user defined symbol.
The function must accept an object with the following fields:
- center - The symbol center on the current layer.
- size - The symbol size.
- style - The symbol style.
- dataItem - The dataItem used to create the symbol.
- location - The location of the data point.
The function return value must be a kendo.drawing.Shape.
Default: "circle"
layers.tileSize
NumberThe size of the image tile in pixels.
Default: 256
layers.titleField
StringThe data item field which contains the marker title. Requires the dataSource option to be set.
Default: "title"
layers.tooltip
ObjectThe default Kendo UI Tooltip options for data-bound markers.
layers.type
StringThe layer type. Supported types are:
- "bing" - a Bing (tm) tile layer
- "tile" - a generic "slippy map" tile layer
- "marker" - a data-bound marker layer
- "shape" - a vector shape layer, e.g. bound to GeoJSON data
- "bubble" - a specialized vector shape layer for bubble maps
layers.urlTemplate
StringThe URL template for tile layers. Template variables:
- x - X coordinate of the tile
- y - Y coordinate of the tile
- zoom - zoom level
- subdomain - Subdomain for this tile. See subdomains
layers.valueField
StringThe value field for bubble layer symbols. The data item field should be a number.
Default: "value"
layers.zIndex
NumberThe zIndex for this layer.
Layers are normally stacked in declaration order (last one is on top).