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

add fillzoom #50

Merged
merged 2 commits into from
Jul 16, 2018
Merged

add fillzoom #50

merged 2 commits into from
Jul 16, 2018

Conversation

mapsam
Copy link
Contributor

@mapsam mapsam commented Jul 13, 2018

This adds the fillzoom field, and should resolve #27

cc @GretaCB

@springmeyer springmeyer requested a review from whyvez July 13, 2018 17:00
3.0.0/README.md Outdated

An integer specifying the zoom level at which to generate overzoomed tiles from. Implementations may generate overzoomed tiles from parent tiles if the requested zoom level does not exist. In most cases, overzoomed tiles are generated from the maximum zoom level of the tileset. If fillzoom is specified, the overzoomed tile is generated from the fillzoom level.

For example, in a tileset with maxzoom 10 and _no_ fillzoom specified, if a request for a z11 tile comes through, the implementation may use the maximum z10 parent tiles to generate the new, overzoomed z11 tile. If the same tilejson had fillzoom specified at z7, a request for a z11 tile could still try to generate with z10, but MAY backfill using to the z7 parent tile.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may use the maximum z10 -> will use the maximum z10 seems like more correct wording, unless you meant will try to use maximum z10 tile if it exists

I would say:

-If the same tilejson had fillzoom specified at z7, a request for a z11 tile could still try to generate with z10, but MAY backfill using to the z7 parent tile.
+If the same tilejson had fillzoom specified at z7, a request for a z11 tile would use the z7 tile instead of z10.

I think the usecase here is for custom tile generation pipelines that want to have sparse tiling (avoid rendering to the maxzoom) for some regions, like large ocean regions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - thanks @springmeyer! fcf4ebb

Copy link

@springmeyer springmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @mapsam - made minor comments.

Copy link

@whyvez whyvez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mapsam This looks great! Thank you for putting this together!

@mapsam
Copy link
Contributor Author

mapsam commented Jul 16, 2018

Thanks @whyvez @springmeyer - appreciate your review!

@mapsam mapsam merged commit 1d2c830 into 3.0 Jul 16, 2018
@mapsam mapsam deleted the 3.0-fillzoom branch July 16, 2018 16:46
@mapsam mapsam mentioned this pull request Jul 16, 2018
41 tasks
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

Successfully merging this pull request may close these issues.

3 participants