show
Shows the layer, if not visible.
Example
<div id="map"></div>
<script>
$("#map").kendoMap({
layers: [{
type: "marker",
dataSource: [
{ latlng: [42.3601, -71.0589], name: "Boston" },
{ latlng: [40.7128, -74.0060], name: "New York" }
],
locationField: "latlng"
}]
});
var map = $("#map").data("kendoMap");
var markerLayer = map.layers[0];
// Hide the layer first
markerLayer.hide();
console.log("Marker layer hidden");
// Show the marker layer
setTimeout(() => {
markerLayer.show();
console.log("Marker layer is now visible");
}, 1000);
</script>
In this article