Closed sylvainavelo closed 1 year ago
Hi,
Thanks for the bug report. Indeed, it is coming from this change which aimed at truncating long cycle junction names. Original issue was https://github.com/cyclosm/cyclosm-cartocss-style/issues/381. The dot is now always appended, truncation or not.
Two options for a fix:
The first option, removing the final dot whether a truncation occured or not, seems a perfectly appropriate way to deal with the issue.
I didn't get the exact role of this part of the query because I didn't know node refs could be longer than 3 digits.
A quick query for nodes with a ref starting with a letter shows it is quite unusual : https://overpass-turbo.eu/s/1CgJ
And in some places, truncating the ref makes it too short to be relevant. It seems there are two networks which have this issue. In Catalonia there is network with references that are 5 characters long.
The other network is north of Hamburg with nodes containing an abbreviated city name before the number. For instance Nds140
for a node in the city of Norderstedt.
In both cases, the end of the ref seems more relevant than the beginning.
Knowing this, wouldnt it be appropriate to make the substring from the end instead of the beginning ?
Done, thanks for the checks!
EDIT: Not already visible online, I'll try to publish a new version soon.
I spoted a minor issue on the rendering of node networks.
According to the map legend, nodes of a node_network are supposed to be labeled with their number:
But the numbers seem to be always followed by an unnecessary dot, which makes them look a bit "off", not centered:
It may be linked to this part of the code, which concatenates multiple possible references (international, national, regional and local node network) with a dot: https://github.com/cyclosm/cyclosm-cartocss-style/blob/c4e8611aca2f5c00d4cb6b73c3e7bc4676e0627c/project.mml#L998-L1002
I don't think I can reproduce the toolchain now to try and submit a PR myself. Kudos to anyone who can!