hide

Hides the layer, if visible.

Example

<div id="map"></div>
<script>
var map = $("#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"]
    }]
}).data("kendoMap");

var tileLayer = map.layers[0];

// Hide the tile layer
setTimeout(function() {
    tileLayer.hide();
    console.log("Tile layer is now hidden");
}, 1000);
</script>
In this article
hide
Not finding the help you need?
Contact Support