Commit d115330b authored by Baptiste Jonglez's avatar Baptiste Jonglez

frontend: when fetching altitude data from API, parse it as a float

parent 1832e49b
......@@ -144,9 +144,9 @@
$('#id_newrefpoint-longitude').val(lng);
$.get("/altitude/" + lat + "/" + lng + "/").done(
function(data) {
$('#id_custompoint-ground_altitude').val(parseInt(data));
$('#id_newpano-ground_altitude').val(parseInt(data));
$('#id_newrefpoint-ground_altitude').val(parseInt(data));
$('#id_custompoint-ground_altitude').val(parseFloat(data));
$('#id_newpano-ground_altitude').val(parseFloat(data));
$('#id_newrefpoint-ground_altitude').val(parseFloat(data));
});
}
function SearchPlace() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment