location

Gets or sets the Marker location.

Parameters

location Array|kendo.dataviz.map.Location

The marker location on the map. Coordinates are listed as [Latitude, Longitude].

Returns

kendo.dataviz.map.Location The current location of the Marker

Example

<div id="map"></div>
<script>
$("#map").kendoMap({
    layers: [{
        type: "tile",
        urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
        attribution: "&copy; OpenStreetMap"
    }],
    markers: [{
        location: [42.3601, 71.0589],
        title: "Boston"
    }],
    markerActivate: function (e) {
        var currentLocation = e.marker.location();
        console.log("Current location:", currentLocation);
    }
});    
</script>
In this article
location
Not finding the help you need?
Contact Support