clone

Creates a new instance with the same coordinates.

Example

<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>

Returns

kendo.dataviz.map.Location The new Location instance.

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