X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f89545b2cc5b6ae020aa11431fc4b28c5cfa436..ad10390663f5c27d4ac9eea1ff35a5a6e2ae4622:/app/assets/javascripts/osm.js.erb?ds=sidebyside 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);