Skip to content

Slimming down boundaries #1715

@zerebubuth

Description

@zerebubuth

Since tilezen/tilequeue#354 fixed a bug, we've been pulling in far more boundaries, median increase in layer size of 40%. Note that the boundaries layer is generally fairly small, and by stripping long names off (#1683) we've reduced layer size significantly at lower zooms. The increase mainly affects mid zooms 9-11, although also zoom 5 (nominal).

We annotate the boundaries with the left and right OSM IDs of the relations they delineate, but these are probably not used in styling. We could remove them to save a significant amount of space in tiles with a lot of boundaries. In addition, this would open up opportunities for merging which are not available at the moment as the left/right ID pair is nearly-unique.

As well, or instead, we could consider showing detail boundaries (kind: locality) at higher zooms (currently start at 10). The problem is that countries vary wildly in the density of their localities, so it's possible that a good value for the min_zoom in one country wouldn't be appropriate for another. Annotating with the country code and clipping might be an option, although complex.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions