layerDefaults.shape Object
The default configuration for shape layers.
Example
<div id="map"></div>
<script>
$("#map").kendoMap({
layerDefaults: {
shape: {
attribution: "© Company Inc."
}
},
layers: [{
type: "shape",
dataSource: {
type: "geojson",
data: [{
"type": "Polygon",
"coordinates": [
[[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
]
}]
}
}]
});
</script>
Related Properties
- layerDefaults.shape.attribution
- layerDefaults.shape.opacity
- layerDefaults.shape.style
- layerDefaults.shape.style.stroke
- layerDefaults.shape.style.stroke.color
- layerDefaults.shape.style.stroke.dashType
- layerDefaults.shape.style.stroke.opacity
- layerDefaults.shape.style.stroke.width
- layerDefaults.shape.style.fill
- layerDefaults.shape.style.fill.color
- layerDefaults.shape.style.fill.opacity