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

Create

class methods

Creates a Location instance from various input types.

Parameters:latNumber|Array|kendo.dataviz.map.Location

The location latitude in decimal degrees, a [latitude, longitude] array or an existing Location instance.

Returns:kendo.dataviz.map.Location

The Location instance, if valid.

<script>
// Create from lat/lng coordinates
var location1 = kendo.dataviz.map.Location.create(40.7128, -74.0060);

// Create from array
var location2 = kendo.dataviz.map.Location.create([40.7128, -74.0060]);

// Create from existing Location
var location3 = kendo.dataviz.map.Location.create(location1);

console.log(location1.toString()); // "40.7128,-74.0060"
</script>
Not finding the help you need?
Contact Support