From 8cd4a2bc7017a74808371ce9119e2660bea7db14 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 20 Jan 2017 11:12:29 -0300 Subject: [PATCH] refs #10 fix waypoint lat/lng precision to 6 digits --- js/gpxedit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gpxedit.js b/js/gpxedit.js index 65d8e33..617dd9e 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -447,8 +447,8 @@ function load_map() { } buttonParent.find('select[role=symbol]').change(); var latlng = gpxedit.layersData[id].layer.getLatLng(); - buttonParent.find('input.layerLat').val(latlng.lat); - buttonParent.find('input.layerLon').val(latlng.lng); + buttonParent.find('input.layerLat').val(latlng.lat.toFixed(6)); + buttonParent.find('input.layerLon').val(latlng.lng.toFixed(6)); } });