layerDefaults.shape.style Object
The default style for shapes.
Example - Set default style for all shape layers
<div id="map"></div>
<script>
$("#map").kendoMap({
layerDefaults: {
shape: {
style: {
fill: {
color: "red",
opacity: 1
},
stroke: {
color: "green",
width: 4,
dashType: "longDashDot",
opacity: 0.5
}
}
}
},
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.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