X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f89545b2cc5b6ae020aa11431fc4b28c5cfa436..606e66beb32d2b683651cf9ac7ae575d90df7ad6:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index ebd97f39b..81c1e3152 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -113,6 +113,10 @@ OSM = { mapParams.notes = params.notes == "yes"; + if (params.note) { + mapParams.note = parseInt(params.note); + } + var scale = parseFloat(params.scale); if (scale > 0) { mapParams.zoom = Math.log(360.0 / (scale * 512.0)) / Math.log(2.0);