osm-americana / openstreetmap-americana

A quintessentially American map style
https://americanamap.org
Creative Commons Zero v1.0 Universal
182 stars 59 forks source link

No Canadian major routes show up at middle-low zooms #565

Open andrepoiy opened 1 year ago

andrepoiy commented 1 year ago

So once you zoom out to a certain point, all Canadian roads disappear from the map, but it seems like some US Interstates still remain.

I'm guessing that the Interstates have a special rule where they can be rendered at a lower zoom than everything else. In that case, could a similar rule be applied to major Canadian roads? Of course, since Canada doesn't have a standardized Interstate system like the US, what would be considered "major" could be a topic of contestation.

Last zoom where Canadian roads are still visible image

Next zoom where all Canadian roads disappear. (interesting that Ottawa also disappears) image

claysmalley commented 1 year ago

I'm guessing that the Interstates have a special rule where they can be rendered at a lower zoom than everything else.

Indeed, that is the case. Motorways are present in the vector tiles starting at zoom 4, and trunks at zoom 5. Instead of displaying all motorways at zoom 4, we decided to filter away any highways that aren't part of our national motorway network, but this filter goes away when all trunks are shown.

Of course, due to Canada's size and low population density, a national motorway network would be impractical. Though I personally believe the Trans-Canada Highway, among other non-motorway (inter)national networks, deserves the same highlighting at low zoom.

For this to happen, there would need to be a change to OpenMapTiles to display trunk roads at zoom 4.

ZeLonewolf commented 1 year ago

It's a valid issue, and I'd like to see route networks that are roughly equivalent to US interstates in other countries render at the same zoom level. I haven't tried to tackle this because I'm far less familiar with other countries' route networks.

One answer would be to promote all of network=CA:transcanada and network=CA:transcanada:namedRoute to be at a level equivalent to US interstates. I'm not sure what the difference is between the two network values other than the namedRoute variant seems to be in use in Ontario/Quebec vice the unadorned one which is used elsewhere.

This would produce a network that looks like this:

image

However, all of the green are trunk roads, and I suspect there are no trunks of any kind being rendered at z4. So I concur with Clay's assessment here that we'd have to change the OMT side.

andrepoiy commented 1 year ago

The Trans-Canada Highway would certainly make a good starting point, however, there are a lot of other routes that are arguably more important than the TCH that should also get the render.

For example, much of the Ontario and Quebec freeway network is not a part of the TCH. In fact, Highway 401, which services the Windsor-Quebec City corridor (the Canadian equivalent to the US Northeast Megalopolis) is not a part of the TCH at any point.

In BC, the TCH between Vancouver and Kamloops is actually not the preferred route, as it takes a longer route and meanders a lot. The preferred route here is Highway 5, which takes a shorter route and is also a dual-carriageway.

Halifax, NS, the largest city in Atlantic Canada, is also unconnected by the TCH

Other examples include a portion of Alberta Highway 2 and a portion of Sask. Highway 11, which connects the largest cities in their respective provinces but also not a part of the TCH

andrepoiy commented 1 year ago

One answer would be to promote all of network=CA:transcanada and network=CA:transcanada:namedRoute to be at a level equivalent to US interstates. I'm not sure what the difference is between the two network values other than the namedRoute variant seems to be in use in Ontario/Quebec vice the unadorned one which is used elsewhere.

The named:route variants used in Quebec and Ontario are essentially alternate routes. Some of them make no sense at all for actual cross-country traffic such as the Southern Ontario Route.

Ontario and Quebec don't take the TCH that seriously. In fact, those provinces do not put up signs for the TCH at junctions at all.

ZeLonewolf commented 1 year ago

there are a lot of other routes that are arguably more important than the TCH that should also get the render.

I'm confident that rendering all trunk roads at z4 would be a non-starter on the OpenMapTiles side. Ultimately there needs to be some tagging-based mechanism to determine which roads are the most important to write the code to promote them.

The named:route variants used in Quebec and Ontario are essentially alternate routes. Some of them make no sense at all for actual cross-country traffic such as the Southern Ontario Route.

That would certainly make accomplishing the goal quite difficult here. Ultimately computer-based maps have to use rules-based rendering, so I'd welcome an exploration on what the "rule" should be to see a road at the highest zoom.

zekefarwell commented 1 year ago

I think for Canada, the rules would have to be set on a Province level. In Ontario, the 400 series highways are equivalent to US Interestates in importance. In Quebec, the Autoroutes are at the same level. Quebec Autoroutes can be identified by network=CA:QC:A. Ontario 400 series highways unfortunately do not have a distinct network value so they would have to be identified by network=CA:ON:primary and ref == 400 - 499. I'm not familiar enough with the other provinces to know which would be the equivalent of Interstate level importance there.

ZeLonewolf commented 1 year ago

With the completion of openmaptiles/openmaptiles#1439, once this goes live (no known timeline), we will have some major Canadian routes up to z4.