Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{bbox}} template is broken #13

Closed
Vanuan opened this issue Apr 21, 2013 · 2 comments
Closed

{{bbox}} template is broken #13

Vanuan opened this issue Apr 21, 2013 · 2 comments

Comments

@Vanuan
Copy link
Contributor

Vanuan commented Apr 21, 2013

When I run the query that contains {{bbox}} I end up with errors:

Error: line 8: static error: For the attribute "w" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0.

Error: line 8: static error: For the attribute "e" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0.

And indeed, when I look at the underlying request, it has numbers like this: -482.48 in the corresponding attributes.

@Vanuan
Copy link
Contributor Author

Vanuan commented Apr 21, 2013

It is because for some reason, world coordinates are not cyclic, i.e. when you scroll the world twice, you'll have 360 degrees added to your coords. Probably a bug in Leaflet.

@tyrasd
Copy link
Owner

tyrasd commented Apr 21, 2013

Well, this behaviour changed with Leaflet 0.5. But it's meant to be that way.

For now, I've decided to display only one "earth" and to clip coordinates that are outside of those bounds. Because this is more the way the Overpass API handles coordinates.

@tyrasd tyrasd closed this as completed in f100d68 Apr 21, 2013
tyrasd added a commit that referenced this issue Apr 21, 2013
also: do not repeat tiles outside the supported lat/lon range. (= show only one earth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants