edges

Returns the four extreme locations of the extent.

Example

<div id="map"></div>
<script>
var extent = new kendo.dataviz.map.Extent(
    new kendo.dataviz.map.Location(42.3601, -71.0589), // Boston
    new kendo.dataviz.map.Location(40.7128, -74.0060)  // New York
);

var edges = extent.edges();
console.log("North West:", edges.nw);
console.log("North East:", edges.ne);
console.log("South East:", edges.se);
console.log("South West:", edges.sw);

$("#map").kendoMap({
    center: extent.center(),
    zoom: 8
});
</script>

Returns

Object An object with nw, ne, se and sw locations.

In this article
edges
Not finding the help you need?
Contact Support