X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9dfb2729abf4836992e51c726326e26e7791d243..78f608b114c05f1147936a57b930831e28000c1a:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index f3c1c3607..7a8f3da3e 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -110,6 +110,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);