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

Order of coordinates for viewbox parameter #2510

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

Order of coordinates for viewbox parameter #2510

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

Comments

@openstreetmap-trac
Copy link

Reporter: Xoff
[Submitted to the original trac issue database at 6.39pm, Thursday, 26th November 2009]

It would be nice if the order of the coordinates for the viewbox parameter could be changed to left,bottom,right,top. This would allow to use e.g. Openlayers' toBBOX() function to conveniently create the value for the viewbox parameter. It would also make nominatim using the same convention as Xapi and the OSM-Api (see [http://wiki.openstreetmap.org/wiki/Bbox]).

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 8.09pm, Thursday, 26th November 2009]

I've added an extra param, viewboxlbrt, which will accept the points in that order although I've not tested it properly yet.

@openstreetmap-trac
Copy link
Author

Author: Harry Wood
[Added to the original trac issue at 10.45pm, Tuesday, 8th March 2016]

I was just noticing this 'viewboxlbrt' parameter on the wiki parameter docs, but the fun thing is... both viewbox and viewboxlbrt parameters accept the top and bottom either way round!

All of the following work ok:

Likewise left and right can happily be swapped around.

Twain added viewboxlbrt parameter 6 years ago. I imagine maybe it became min/max agnostic in recent times. Is it a bug? not really. ...it's a good thing!

But it seems to mean that the 'viewboxlbrt' parameter could be quietly dropped from the docs (deprecated) It seems to be pointless.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 12.15pm, Saturday, 30th September 2017]

The way it works now, any two opposite points in the viewbox will do. I've changed the documentation but the viewboxlbrt parameter will continued to be accepted.

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