New to Kendo UI for jQuery? Start a free 30-day trial

Sets the data source of this layer.

Parameters:dataSourceObject

A live DataSource instance or its configuration object.

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "marker",
            dataSource: ds,
            locationField: "latlng"
        }]
    });

    var ds = new kendo.data.DataSource({
        data: [{
            latlng: [0, 0]
        }]
    });

    var map = $("#map").data("kendoMap");
    var layer = map.layers[0];
    layer.setDataSource(ds);
</script>
Not finding the help you need?
Contact Support