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

Fired when a marker has been created and is about to be displayed. Cancelling the event will prevent the marker from being shown.

Use markerActivate if you need to access the marker DOM element.

Markers are automatically created for GeoJSON Point geometries. If the markerCreated event is cancelled a regular shape (circle) will be created instead.

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.

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "shape",
            dataSource: {
                type: "geojson",
                data: [{
                    "type": "Point",
                    "coordinates": [
                        [30, 10]
                    ]
                }]
            }
        }],
        markerCreated: function(e) {
            // Draw a shape (circle) instead of a marker
            e.preventDefault();
        }
    });
</script>
Not finding the help you need?
Contact Support