mapbox / mapbox/mapbox-gl-js

maxzoom not working unless bounds set and tilejson used

Open
#9,804 0 comments 1 reaction 1 assignee View on GitHub

@arindam1993 is already working on this.

Since Jul 9, 2021.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

The map is supposed to render the zoomlevels of a vector layer if they go beyond the source maxzoom, by reusing the tiles at that source's maxzoom. This was not working for me.

For this to work, the tileBounds member has to be initialized (in the vector source source code). But this only occurs when using a tilejson "url" (rather than "tiles" directly) and tilejson "bounds".

I fixed it for my case, but to avoid user frustration, this should be more clearly in the documentation OR source maxzoom should be implemented regardless of wether a tilejson is used or bounds are set.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.