-
Notifications
You must be signed in to change notification settings - Fork 119
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
Slimming down boundaries #1725
Conversation
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. |
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Remove
id:left
andid:right
properties at mid and low zooms (z<13) which are almost-unique and prevent effective merging. Pushmin_zoom
forlocality
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 theid:left
andid:right
drop, and a further 83% reduction (from 23kB down to 4kB) by not includinglocality
at this zoom level. Overall, the layer is 91% smaller!Connects to #1715.