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

Fired when a shape is clicked or tapped.

Event Data

e.layer kendo.dataviz.map.layer.Shape

The parent layer instance.

e.shape kendo.drawing.Element

The shape instance.

e.sender kendo.dataviz.ui.Map

The source widget instance.

e.originalEvent Object

The source jQuery event instance

<div id="map"></div>
<script>
    $("#map").kendoMap({
        zoom: 3,
        center: [0, 0],
        layers: [{
            type: "tile",
            urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "\u00A9 OpenStreetMap"
        }],
        shapeClick: function() {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("shape clicked");
        }
    });
</script>
<div id="map"></div>
<script>
    $("#map").kendoMap({
        zoom: 3,
        center: [0, 0],
        layers: [{
            type: "tile",
            urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "\u00A9 OpenStreetMap"
        }]
    });

    var map = $("#map").data("kendoMap");
    map.bind("shapeClick", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("shape clicked");
    });
</script>