Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

?bbox= links to osm.org no longer work #5050

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments
Closed

?bbox= links to osm.org no longer work #5050

openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Robert Whittaker
[Submitted to the original trac issue database at 1.49pm, Sunday, 1st December 2013]

Previously, the following type of link would do what you would expect, ie show you a map zoomed in on the given bounding box:
http://www.openstreetmap.org/?bbox=0.907561895561809,52.7108938152843,0.907561895561809,52.7108938152843

But since the launch of the recent redesign, these links seem to have stopped working. Instead, such links appear to display the last location that you viewed on OSM, much as if you'd just followed a link to http://www.openstreetmap.org/

Please restore the previous bbox functionality, to allow people to link to specific areas.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 9.57pm, Sunday, 1st December 2013]

You can still link to a location, you just can't give a bounding box. We were aware of the loss of this functionality but analysis of server logs suggested that very few people were using it.

@openstreetmap-trac
Copy link
Author

Author: Robert Whittaker
[Added to the original trac issue at 6.42pm, Monday, 2nd December 2013]

Even if not many people use it, it is arguably still a very useful feature to have. (It's lack of use was probably due to a lack of documentation.) As well as being able to link to an area, and guarantee that the area would be zoomed appropriately on an unknown screen size, the feature also allowed you to draw a box on the screen to outline an area. I have sites that used both of these features (one aimed at OSM mappers and one at the general public), and my links are now broken.

It appears that there is still code in place to allow the map to show and zoom to a particular bounding box, as it's used by the changeset view: http://www.openstreetmap.org/changeset/19211206 , just not to parse those particular URLs.

Is there are alternative URL format that will provide the functionality here (i.e. can I update my links to some other format)? Or has the code to interpret the URLs been removed altogether? If the latter, were there any particular reasons for doing so (i.e. would you be likely to accept a patch to restore it)?

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.33pm, Monday, 2nd December 2013]

Fixed by openstreetmap/openstreetmap-website#594.

@openstreetmap-trac
Copy link
Author

Author: aseerel4c26
[Added to the original trac issue at 2.02am, Tuesday, 3rd December 2013]

At least currently it works (partly) but does not show the bbox like before (a yellow/orange rectangle, IIRC). Example: http://www.openstreetmap.org/?box=yes&bbox=-4.269454,55.851998,-4.240465,55.864957 used in the description of https://wiki.openstreetmap.org/wiki/File:20130223_DSC1072_Looking_at_Buildings.jpg

@openstreetmap-trac
Copy link
Author

Author: Robert Whittaker
[Added to the original trac issue at 12.56pm, Tuesday, 3rd December 2013]

Many thanks for the quick fix.

As you say, it's not completely fixed as there's no equivalent to &box=yes. I've also noticed that &layers=C is lost when the redirect happens, so there's no way to link to a specific bbox with a non-default different layer.

One of the links I was using that previously worked was http://www.openstreetmap.org/?minlon=0.8969&minlat=52.3616&maxlon=1.1020&maxlat=52.3865&layers=C&box=yes

I'm not against having to change the URL format to achieve it, but I would like to see the previous functionality made available again.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 1.03pm, Tuesday, 3rd December 2013]

Well box=yes was only ever an internal implementation detail and was never intended for external use so I think it's highly unlikely we will bring that back.

In case the issue reported here (the bbox parameter) is clearly fixed.

@openstreetmap-trac
Copy link
Author

Author: aseerel4c26
[Added to the original trac issue at 4.08pm, Tuesday, 3rd December 2013]

Well, there it is: https://trac.openstreetmap.org/ticket/5055 (box) and https://trac.openstreetmap.org/ticket/5056 (layer)

@openstreetmap-trac
Copy link
Author

Author: Robert Whittaker
[Added to the original trac issue at 1.45pm, Friday, 6th December 2013]

The layers=* does indeed work again on the link I posted above, so that aspect is fixed, thanks.

Regarding the display of the bounding box, TomH, closed #5051 (which specifically mentioned the bounding box display) as a duplicate of this issue, but now says that bit isn't part of this issue! You can't have it both ways. :)

But for clarity (since the rest of #5051 has now been addressed), I've opened the lack of box display as a separate issue: #5060

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant