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
Render long-distance ferries at longer zooms #1486
Conversation
Results evaluating commit da742ec (merged with base d8c367f as b3d07aa). See run details. PostgreSQL DB size in MB: 4864 ⇒ 4863 (-0.0% change)
expand for details...
|
Thanks for the PR. Could you please also adjust the style? Would be worth it to merge the lines e.g. by |
|
Style update in 872cd71. I changed the cartography to better match how it looks in the standard tile layer: |
6434af3
to
ae6096c
Compare
ae6096c
to
543ed53
Compare
I'm experimenting with merging the parallel linestrings in https://github.com/ZeLonewolf/openmaptiles/tree/zlw-coalesce-ferries, but it's really complicated and I'd like to tackle that as a separate PR so we can examine the performance/size/updates tradeoffs separately. |
Thanks! Looks good. |
Unblocks ZeLonewolf/openstreetmap-americana#720
In some areas of the world, ship transportation is the main means of long-distance travel. For example, in Alaska, the Alaska Marine Highway System is the principal means of transportation through the Alaska Panhandle and down the Aleutian island chain. The AMHS carries the same importance that the Interstate Highway System has on land, and these ferry routes are exceptionally long distance.
Alaska Marine Highway System
Currently, ferries do not begin to render until zoom 11, which is inadequate for such long routes.
Lowest-zoom render of AMHS routes
Solution
This PR adds rendering for ferries down to zoom 4, which is the zoom at which the most important highways are rendered. Lower zoom (<z11) ferries are filtered so that only ferries that are of a significant length on the screen are shown.
Since ferry lines are drawn with low fidelity (few nodes), they tend to add very little size to the tiles compared to other features.
Data Render Samples
Rendered tile server (Alaska): https://6ug7hetxl9.execute-api.us-east-2.amazonaws.com/data/alaska-low-zoom/#4/56.59/-138.6
AMHS at zoom 4:
Detail added at zoom 5:
Detail at z10:
Styled tiles (OSM Americana). Clearly we could use a bit of work on the cartography but you get the idea: