optionsObject

The layer options.

Example

<div id="map"></div>
<script>
var layerOptions = {
    dataSource: {
        type: "geojson",
        data: [{
            "type": "Polygon",
            "coordinates": [
                [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
            ]
        }],
    },
    style: {
        fill: {
            color: "#007acc",
            opacity: 0.5
        },
        stroke: {
            color: "#004080",
            width: 2
        }
    }
};
var map = $("#map").kendoMap({
    layers: [{
        type: "shape",
        ...layerOptions
    }]
}).data("kendoMap");

console.log(map.layers[0]);
</script>
In this article
options
Not finding the help you need?
Contact Support