Skip to content

add fillzoom - #50

Merged
mapsam merged 2 commits into
3.0from
3.0-fillzoom
Jul 16, 2018
Merged

mapsam merged 2 commits into
3.0from
3.0-fillzoom

Conversation

@mapsam

@mapsam mapsam commented Jul 13, 2018

Copy link
Copy Markdown
Contributor

This adds the fillzoom field, and should resolve #27

cc @GretaCB

@springmeyer
springmeyer requested a review from whyvez July 13, 2018 17:00
Comment thread 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.

Copy link
Copy Markdown

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
Copy Markdown
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

@springmeyer springmeyer left a comment

Copy link
Copy Markdown

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.

@whyvez whyvez left a comment

Copy link
Copy Markdown

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

mapsam commented Jul 16, 2018

Copy link
Copy Markdown
Contributor Author

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
36 of 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