aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-wmts-zurich.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-28 13:32:15 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-31 14:43:13 +0000
commitfa94f1d01dfa350243f40621501e4b497be7455e (patch)
treef555ec8d264fc480b212a462fea04b0e0eed732c /web/js/map-wmts-zurich.js
parentb19c289953cbcab2fa99bd2f061f8c1955850d6b (diff)
Restrict lat/lon in URL/fields to 6dp.
Diffstat (limited to 'web/js/map-wmts-zurich.js')
-rw-r--r--web/js/map-wmts-zurich.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js
index 436dca6ff..7ed7bbbc3 100644
--- a/web/js/map-wmts-zurich.js
+++ b/web/js/map-wmts-zurich.js
@@ -102,8 +102,8 @@ fixmystreet.maps.matrix_ids = [
(function() {
function pin_dragged(lonlat) {
- document.getElementById('fixmystreet.latitude').value = lonlat.y;
- document.getElementById('fixmystreet.longitude').value = lonlat.x;
+ document.getElementById('fixmystreet.latitude').value = lonlat.y.toFixed(6);
+ document.getElementById('fixmystreet.longitude').value = lonlat.x.toFixed(6);
}
$(function(){