diff options
author | Dave Arter <davea@mysociety.org> | 2017-03-16 10:38:34 -0400 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-30 17:14:10 +0100 |
commit | 21bde113503d86f1791e170d1133710a2ed32077 (patch) | |
tree | 62bdac04f7da9dc53686d10f0aa3c345c78f3333 /web/js | |
parent | 97dd5b788578cedbf65672fd65d88bcf37d9a56b (diff) |
Use lat/lon on inspection form if local coordinates aren’t available
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-OpenLayers.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 2a5af940d..40539f385 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -331,6 +331,8 @@ var fixmystreet = fixmystreet || {}; ); $("#problem_northing").text(bng.y.toFixed(1)); $("#problem_easting").text(bng.x.toFixed(1)); + $("#problem_latitude").text(lonlat.y.toFixed(6)); + $("#problem_longitude").text(lonlat.x.toFixed(6)); $("form#report_inspect_form input[name=latitude]").val(lonlat.y); $("form#report_inspect_form input[name=longitude]").val(lonlat.x); }, |