mapkendo.dataviz.ui.Map
The owner Map widget.
Example
<div id="map"></div>
<script>
function createMap() {
$("#map").kendoMap({
center: [45, 45],
minZoom: 3,
zoom: 4,
wraparound: false,
layers: [
{
type: "tile",
urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
subdomains: ["a", "b", "c"],
attribution: "© <a href='https://osm.org/copyright'>OpenStreetMap contributors</a>"
}
]
});
// Access the owner Map widget from the layer
let map = $("#map").data("kendoMap");
let layer = map.layers[0];
console.log("Owner map widget:", layer.map);
}
$(document).ready(createMap);
</script>
In this article