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

Clone

methods

Creates a new instance with the same coordinates.

Returns:kendo.dataviz.map.Location

The new Location instance.

<script>
var original = new kendo.dataviz.map.Location(40.7128, -74.0060);
var cloned = original.clone();

console.log(cloned.lat); // 40.7128
console.log(cloned.lng); // -74.0060
console.log(original === cloned); // false (different instances)
</script>
Not finding the help you need?
Contact Support