markerActivate

Fired when a marker has been displayed and has a DOM element assigned.

Event Data

e.marker kendo.dataviz.map.Marker

The marker instance.

e.layer kendo.dataviz.map.Marker

The marker layer instance.

e.sender kendo.dataviz.ui.Map

The source widget instance.

Example - Customize the marker DOM element

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "shape",
            dataSource: {
                type: "geojson",
                data: [{
                    "type": "Point",
                    "coordinates": [
                        [30, 10]
                    ]
                }]
            }
        }],
        markerActivate: function(e) {
            e.marker.element.addClass("foo");
        }
    });
</script>
In this article