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

Round

methods

Rounds the location coordinates to the specified number of fractional digits.

Parameters:digitsNumber

Number of fractional digits.

Returns:kendo.dataviz.map.Location

The current Location instance.

<script>
var loc = new kendo.dataviz.map.Location(40.712812345, -74.006012345);
console.log("Original:", loc.toString()); // "40.712812345,-74.006012345"

loc.round(2);
console.log("Rounded:", loc.toString()); // "40.71,-74.01"
</script>
Not finding the help you need?
Contact Support