urlTemplateString

The URL template for tile layer. Template variables:

  • x - X coordinate of the tile
  • y - Y coordinate of the tile
  • zoom - zoom level
  • subdomain - Subdomain for this tile

Example

<div id="map"></div>
<script>
$("#map").kendoMap({
    zoom: 3,
    center: [30.2681, -97.7448],
    layers: [{
        type: "tile",
        urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
        subdomains: ["a", "b", "c"]
    }]
});
</script>
In this article
urlTemplate
Not finding the help you need?
Contact Support