You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If "bounds" is missing, how do I know valid tile-x/y? If the center is also missing, I don't see any possibility to even get valid tile-xy. This problem would be solved by making the "bounds" key required instead of optional.
Hey @mnboos, thanks for the ticket! I agree that without a bounds or center, it’s difficult to know the valid XY coordinates. My understanding is that bounds and center are useful starting points for rendering and visualizing the map data.
What is your use-case for knowing valid XY tiles? If you know the bounds, that provides you which tiles aren’t valid, but it doesn’t solve the case where tiles inside the bounding box don’t contain data (like a circle inside a square, the corners have no tiles but are within the bounding box). So I guess the question is: is bounds 100% useful for knowing XY? Applications still have to take into account tiles that don’t exist.
Adding the v3 label since it'll be great to document the important use-cases of bounds and center and clearly define the relationship between maps, tiles, TileJSON.
Activity
mapsam commentedon Apr 9, 2018
Hey @mnboos, thanks for the ticket! I agree that without a bounds or center, it’s difficult to know the valid XY coordinates. My understanding is that
boundsandcenterare useful starting points for rendering and visualizing the map data.What is your use-case for knowing valid XY tiles? If you know the bounds, that provides you which tiles aren’t valid, but it doesn’t solve the case where tiles inside the bounding box don’t contain data (like a circle inside a square, the corners have no tiles but are within the bounding box). So I guess the question is: is
bounds100% useful for knowing XY? Applications still have to take into account tiles that don’t exist.mapsam commentedon Apr 9, 2018
Adding the
v3label since it'll be great to document the important use-cases ofboundsandcenterand clearly define the relationship between maps, tiles, TileJSON.andrewharvey commentedon Apr 22, 2018
No bounds could imply worldwide bounds.
I think it's common to have no center, in such a case the application can choose.