-
-
Notifications
You must be signed in to change notification settings - Fork 153
Description
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:
planetiler/planetiler-core/src/main/java/com/onthegomap/planetiler/VectorTile.java
Lines 92 to 93 in edbe7f6
| // 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:
