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
Improve rendering of street names #497
Comments
|
Road names are currently repeated on long ways. Example: "East Colfax Avenue", http://www.openstreetmap.org/#map=15/39.7555/-104.4935. I think this is controlled by the CartoCSS parameter text-spacing. |
|
"Use short_name for features with undisplayable name field" ( #430 ) and "move street label to fit other labels" ( #322 ) are related. "names of very long roads appearing just once" is already done, see https://www.openstreetmap.org/way/259974845#map=17/49.52298/20.24377 for an another example. Though it can be tweaked to repeat more frequently. |
|
For rendering labels, komap uses (abridged sql) It obviously slows down rendering, but the resulting style looks much better, sometimes even better than commercial online maps. You can compare the result with regular OSM styles here. |
@Zverik, do you mean |
|
My immediate concern with this is that it will lead to increased label placement differences between metatiles because each metatile now has completely different linestrings. Thoughts? I know one way of resolving this is to actually have labels done in the DB or in SQL, and just label points, but I've not explored that. |
|
can you add a solution to remove duplicated highway name for sidewalk Originally posted by @SomeoneElseOSM in #3318 (comment) @SomeoneElseOSM have send response for that situation https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L974 . |
|
It should be doable also without lua transformations. Currently 28 907 out of 1 002 840 sidewalks have a name: https://taginfo.openstreetmap.org/tags/footway=sidewalk#combinations |
|
@kocio-pl in fact that can be uprising because this is on discussion with French other contributors delete the names because it considers that have bad rendering for the display. |
|
Is it also a problem for areas or only for lines? We have a |
|
We wouldn't use Lua for this, we'd just delete the CartoCSS rules for names on footway/path/cycleway. I'd want to see more evidence about the pros and cons of this before deciding if it was a good idea. |
I haven't check that but i can test it.
Ok, for me If you have a sidewalk path you have also a major road. Is it possible to check that case with overpass. Ideally It would be a good idea to use also a distance according to the zoom. This is in relation toSidewalk as separate way Other problematic is in relation to parallel cycleway lanes with names. I Think it's more easy for rooting if name exist on path. Anyway for the foot path (specific to blind or wheelchair) it is good practice to represent a reality with specific markings. An solution exist based on this to create specific rooting (specificly for blind with accelerated text to speech) for exemple Versailles France zoom 17 surligned footway https://www.openstreetmap.org/search?query=paris#map=17/48.80268/2.13187 I think this problem is only on zoom >= 17 |
|
Here's what I've found in my city which I thought initially is a con, but now I think this is bad tagging - this footway is not a sidewalk (it's not on a side of the road): |
Yes, that's doesn't look like a sidewalk - there's nothing mapped for it to be the sidewalk of. |
|
If we follow the logic of sidewalk being accompanying (parallel) way, which is how it's meant in general ("a path along the side of a road" in Wikipedia) and in OSM definition ("part of a highway set aside for the use of pedestrians and sometimes also cyclists, separated from the carriageway (or roadway)"), I think it would be hard to find any cons, because the name of a main road is always expected if it exists. It might happen that these names are different or a main road does not have a name, but I guess this is an exception from general rule and the clutter is already visible currently. |
|
I agree to remove label of |
|
@pnorman Do you think it would be better to remove labels in SQL ( |
That is a tagging problem because this is not a sidewalk. |
This would all need to be done in CartoCSS. The only stuff that comes to mind is the buffering for identical labels, nothing elsse seems like it would relevant to what you're proposing.
We can't do anything with those relations. |
Pretty sure that was “in relation to” as a preposition, not a reference to any kind of relation. |
|
We could remove all names from all sidewalks, but this would lead to
problems with “sidewalks” which do not directly follow a road, or which
have a different name than the nearby road.
…On Sat, Nov 24, 2018 at 3:14 AM Minh Nguyễn ***@***.***> wrote:
This is in relation toSidewalk as separate way
We can't do anything with those relations.
Pretty sure that was “in relation to” as a preposition, not a reference to
any kind of relation.
|
|
I believe that would be smaller problem than a current one. Also, I'd like to check the examples to see how many of them are there and if it is that bad. Another solution might be to make bigger spaces between labels on sidewalks, similar to latest road labels tuning - see for example #3318 (comment). |
|
Not only big space because you need set a priority to displayed names by type of label. In addition not all footway was sidewalks. Other problems with bigger spaces is deletion of to many names |
|
I don't quite understand - do you think it's better to remove all the sidewalk labels than just make bigger spaces between labels? |
|
Exactly. For bigger spaces, I am ok for all highway without sidewalk information. |
|
But we were discussing lines and areas, so I'm still confused. Could you make it more detailed? |
|
reread my message please. #497 (comment) line and area is an other problem and is discuss in an other issue My discuss is on twice subject:
In first subject we don't need labelling if this is same name as major side road because this is just a micromapping schema and this solution is better for me for many reasons. sidewalk path can uniquely exist if you have a major road in other case this is mapping error and not a display problem. In second subject: if cycleway have same name of side highway=residential we don't need labelling cycleway. stars for "_link" I can't test my proposition because I haven't install server and database for that. |
@geostonemarten, am I wrong to assume that's a miss-tagging issue when its done and the have the same name as the road, since it violates the naming conventions? |
|
@Adamant36 which convention? name can be identical on sidewalk as a separeted way. This is just an other way to create road and specific part with description. problem is on lisibility on map rendering. If you want create a map with show case on cycleway and sidewalk you reverse priority on map and the rendering. You need separate data and rendering in fact this is done partially with @kocio-pl bigger space. But in this map you don't need name on sidewalk because there is a major road name and (micromapping) sidewalk overload readabillity |



The following issue has been moved over from trac. It needs more discussion as it is not clear how this should be implemented.
Mapnik currently seems to render street names once in the middle of each piece of way, with various undesirable effects such as
This could be remedied by the following:
The text was updated successfully, but these errors were encountered: