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.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.style.stroke
- layers.style.stroke.color
- layers.style.stroke.dashType
- layers.style.stroke.opacity
- layers.style.stroke.width
- layers.style.fill
- layers.style.fill.color
- layers.style.fill.opacity