Skip to content

[FEATURE] Configurable tile extent per zoom in the output #1286

@mourner

Description

@mourner

Is your feature request related to a problem?
Currently, if I understand the code correctly, the tile extent encoded in the output tiles is hardcoded to 4096:

// TODO make these configurable
private static final int EXTENT = 4096;

It does scale to higher precision for intermediary representations, but then gets scaled back to 4096.

My use case is pretty common — I want to generate a very small tileset, so I'm limiting maxzoom to a lower one (z11) to remove as much size overhead as possible, but this obviously leads to artifacts on tile boundaries because 4096 on max zoom tiles isn't enough precision when you zoom in on the map close enough.

Describe the solution you'd like
I'd like a way to configure tile extent so that e.g. I can leave it 4096 on most zooms, but bump it to 16384 on the maximum zoom level so that it packs as much precision as possible for overzooming.

Describe alternatives you've considered
An alternative is raising maxzoom, but that exponentially grows the overall size because of tile buffers & clipping overhead. Being able to increase tile precision at maxzoom for overzooming would be much preferable.

Additional context
Example of an overzooming artifact when maxzoom is low:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions