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

ToString

methods

Returns the location coordinates formatted as '{lat},{lng}'.

Returns:String

A string representation of the location, e.g. "39,-179"

<script>
var loc = new kendo.dataviz.map.Location(40.7128, -74.0060);
var formatted = loc.toString();

console.log(formatted); // "40.7128,-74.0060"
console.log("Location: " + loc); // "Location: 40.7128,-74.0060"
</script>
Not finding the help you need?
Contact Support