X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f4a4632b45af73f051f846bc01f4d45c58f77f8b..644184d254aacf0b7fc83d1b8c67c2a12230c833:/vendor/assets/leaflet/leaflet.polyline.js?ds=sidebyside diff --git a/vendor/assets/leaflet/leaflet.polyline.js b/vendor/assets/leaflet/leaflet.polyline.js index 772e7ebc6..957f6cbda 100644 --- a/vendor/assets/leaflet/leaflet.polyline.js +++ b/vendor/assets/leaflet/leaflet.polyline.js @@ -78,7 +78,7 @@ for (var i = 0, len = numbers.length; i < len;) { for (var d = 0; d < options.dimension; ++d, ++i) { - var num = numbers[i]; + var num = numbers[i].toFixed(options.precision); var delta = num - (lastNumbers[d] || 0); lastNumbers[d] = num;