layers Array
The configuration of the map layers. The layer type is determined by the value of the type field.
Example - configure map layers
<div id="map"></div>
<script>
$("#map").kendoMap({
layers: [{
type: "tile",
urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
attribution: "© OpenStreetMap"
}, {
type: "shape",
dataSource: {
type: "geojson",
data: [{
"type": "Polygon",
"coordinates": [
[[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
]
}]
}
}]
});
</script>
Related Properties
- layers.attribution
- layers.autoBind
- layers.dataSource
- layers.extent
- layers.key
- layers.imagerySet
- layers.culture
- layers.locationField
- layers.shape
- layers.tileSize
- layers.titleField
- layers.tooltip
- layers.tooltip.autoHide
- layers.tooltip.content
- layers.tooltip.content.url
- layers.tooltip.template
- layers.tooltip.animation
- layers.tooltip.animation.close
- layers.tooltip.animation.close.effects
- layers.tooltip.animation.close.duration
- layers.tooltip.animation.open
- layers.tooltip.animation.open.effects
- layers.tooltip.animation.open.duration
- layers.tooltip.callout
- layers.tooltip.iframe
- layers.tooltip.height
- layers.tooltip.width
- layers.tooltip.position
- layers.tooltip.showAfter
- layers.tooltip.showOn
- layers.maxSize
- layers.minSize
- layers.maxZoom
- layers.minZoom
- layers.opacity
- layers.subdomains
- layers.symbol
- layers.type
- layers.style
- layers.style.stroke
- layers.style.stroke.color
- layers.style.stroke.dashType
- layers.style.stroke.opacity
- layers.style.stroke.width
- layers.urlTemplate
- layers.style.fill
- layers.style.fill.color
- layers.style.fill.opacity
- layers.valueField
- layers.zIndex