]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/leaflet/leaflet.polyline.js
Merge remote-tracking branch 'upstream/pull/5296'
[rails.git] / vendor / assets / leaflet / leaflet.polyline.js
index 772e7ebc61355e5973f281c47a1fd18ff1d1cb42..957f6cbda01f0706efb76aebb6cd4df98f2094d0 100644 (file)
@@ -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;