X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bd8713f42b4a5196cf89e8270c57322742ba1f5e..7599f98957334d1924550205f7ba12a726de7eb0:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 39d995c46..e8428da3a 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);