Browse Source

autofill des coordonnées GPS pour nouveau refpoint

julpec 8 years ago
parent
commit
af4a4e61ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panorama/templates/panorama/main.html

+ 2 - 0
panorama/templates/panorama/main.html

@@ -94,8 +94,10 @@
             var lng = map.getCenter().lng.toFixed(5);
             $('#id_custompoint-latitude').val(lat);
             $('#id_newpano-latitude').val(lat);
+            $('#id_newrefpoint-latitude').val(lat);
             $('#id_custompoint-longitude').val(lng);
             $('#id_newpano-longitude').val(lng);
+            $('#id_newrefpoint-longitude').val(lng);
             $.get("http://api.geonames.org/astergdem?lat="+lat+"&lng="+lng+"&username=celutz&style=full" ).done(
                 function(data) {
                     $('#id_custompoint-altitude').val(parseInt(data));