X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3cf3d888b28ae8d9c2697a9b1083f3d5997e3947..352d9365e4c2a70756d3cd2f14530a7f71201c36:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 75562ad48..33f190412 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -109,6 +109,8 @@ OSM = { mapParams.lat = (mapParams.minlat + mapParams.maxlat) / 2; } + mapParams.notes = params.notes == "yes"; + var scale = parseFloat(params.scale); if (scale > 0) { mapParams.zoom = Math.log(360.0 / (scale * 512.0)) / Math.log(2.0);