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

Slimming down boundaries #1725

Merged
merged 3 commits into from
Dec 12, 2018
Merged

Conversation

zerebubuth
Copy link
Member

Remove id:left and id:right properties at mid and low zooms (z<13) which are almost-unique and prevent effective merging. Push min_zoom for locality boundaries from 10 to 11.

On a test tile, 9/285/169, which is a pretty extreme example, we get a layer size reduction of 70% (from 78kB down to 23kB) from the id:left and id:right drop, and a further 83% reduction (from 23kB down to 4kB) by not including locality at this zoom level. Overall, the layer is 91% smaller!

Connects to #1715.

Remove `id:left` and `id:right` properties at mid and low zooms (z<13) which are almost-unique and prevent effective merging.
docs/layers.md Outdated
@@ -151,8 +149,10 @@ Combination of OpenStreetMap administrative boundaries (zoom >= 8) and Natural E

#### Boundaries properties (common optional):

* `id:left`: For the relation on the left side of the boundary line.
* `id:right`: For the relation on the right side of the boundary line.
* `name`: A suggested label, formed from the left and right region names, if available. If the name appears to be too long to be rendered on the geometry at a particular zoom it may be omitted.
Copy link
Member

Choose a reason for hiding this comment

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

The name and id are still common properties, we just strip them at low zooms. I like the new description text, but please move them back to the common section. (This will better match roads and other layer documentation.)

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, cool. Fixed in 4a01b1d.

Copy link
Member

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

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

🎉Wow, another huge file size savings! Great work :)

One documentation nit to address, but otherwise LGTM.

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.

2 participants