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

Equals

methods

Compares this location with another instance.

Parameters:locationkendo.dataviz.map.Location

The location to compare with.

Returns:Boolean

true if the location coordinates match; false otherwise.

<script>
var location1 = new kendo.dataviz.map.Location(40.7128, -74.0060);
var location2 = new kendo.dataviz.map.Location(40.7128, -74.0060);
var location3 = new kendo.dataviz.map.Location(41.8781, -87.6298);

console.log(location1.equals(location2)); // true
console.log(location1.equals(location3)); // false
</script>
Not finding the help you need?
Contact Support