round
Rounds the location coordinates to the specified number of fractional digits.
Example
<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>
Parameters
digits Number
Number of fractional digits.
Returns
kendo.dataviz.map.Location The current Location instance.
In this article