openstreetmap-americana icon indicating copy to clipboard operation
openstreetmap-americana copied to clipboard

Odd-numbered admin-level boundaries are missing

Open 1ec5 opened this issue 2 years ago • 4 comments

Boundary lines are only visible for countries (admin_level=2), states (4), counties (6), and municipalities (8), but not for odd values in between. Any boundary shared by an odd-numbered boundary relation is missing. Odd-numbered boundaries are used for various purposes, such as for townships in Ohio and for cities and boroughs in New York State.

Examples

For example, the tripoint of two townships (7) and one city (8) in Ohio:

Columbia, Symmes, Indian Hill

A boundary between two cities (8) that looks like an island because it’s only connected to boundaries between cities and townships (7):

Cincinnati, North College Hill

What should be the wiggly boundary of New York City (5), the boundary between Bronx and Westchester counties (6), and the boundary between The Bronx and Yonkers (7):

Bronx, Yonkers

Diagnosis

Currently, we have four boundary line layers and three boundary casing layers that each match a single admin_level value exactly. This leaves the intermediate values uncovered.

https://github.com/ZeLonewolf/openstreetmap-americana/blob/a8597df2616d9293d29b17d53eaafb4186f63ed2/src/layer/boundary.js#L44

Implementation notes

An intermediate value should have a dash pattern that’s similar to both adjacent values. This can make it difficult to visually discern the adjacent values. A common technique is to alternate dash patterns. Some use shorter dashes or dots among longer dashes to communicate the admin level quite literally.

Universal Cincinnati Seeger Cincinnati 1991 Rand McNally Manhattan 1991 Benchmark Arizona

We could add more layers for the intermediate values, but there’s so much commonality between these layers that we should instead consolidate them into one line layer and one casing layer, using expressions to control the dash pattern or casing size based on the admin_level property.

1ec5 avatar Jul 09 '22 20:07 1ec5

Overlap with #40

quincylvania avatar Jan 30 '23 02:01 quincylvania

Relevant to this, we recently merged openmaptiles/openmaptiles-tools#421, which adds a number of missing boundaries from low-zoom (for example Wales/England/Scotland boundaries at certain zooms). We'll need to wait for a new release of openmaptiles-tools before we can update openmaptiles before we can style those.

ZeLonewolf avatar Jan 30 '23 02:01 ZeLonewolf

This is affecting regional boundaries in Quebec (admin_level=5),

Example: https://www.openstreetmap.org/way/564160213 is part of a regional boundary (admin_level=5) also shared by county (admin_level=6) and municipal (admin_level=8) boundaries

wolfy1339 avatar Jan 08 '24 23:01 wolfy1339

For clarification, the regional boundary in question cited above is a member of: https://www.openstreetmap.org/relation/8138409

ZeLonewolf avatar Jan 08 '24 23:01 ZeLonewolf