X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ee58d77b7cef4be7642fe21f07ee978d68f0260..258e66299ac45c4dbb951dee0a92194301b31737:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 4430943d1..d2fc81e38 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -81,6 +81,8 @@ OSM = { mapParams.zoom = hash.zoom; mapParams.object_zoom = false; } else if (bounds) { + mapParams.lon = bounds.getCenter().lng; // Not used by main map, but + mapParams.lat = bounds.getCenter().lat; // are used by iD/Potlatch. mapParams.bounds = bounds; mapParams.object_zoom = false; } else if (params.lon && params.lat) {