Skip to content

Stops and Routes vector tiles return 204 HTTP code starting from zoom level 15 #416

Answered by drewda
dmitrykinakh asked this question in Q&A
Discussion options

You must be logged in to vote

The Transitland v2 Vector Tiles for routes and for stops are both generated up to zoom level 14.

As included in the example code at https://www.transit.land/documentation/vector-tiles, you can set a "max zoom" value of 14 to ensure that Mapbox GL JS (or Maplibre or Leaflet) does not try to load and display tiles past that zoom level.

Some libraries can also do their own client-side interpolation at higher zoom levels. In Leaflet, set a maxNativeZoom value of 14 and then it will calculate how to display those tiles at higher zoom levels.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by drewda
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants