[talk-au] Errors in rendering names of administrative boundaries
ajt1047 at gmail.com
ajt1047 at gmail.com
Tue Jul 26 00:49:41 UTC 2016
On 25/07/2016 08:14, cleary wrote:
> I have noticed errors in rendering names of administrative boundaries on
> the OSM website map. It is not just Australian boundaries. For example
> http://www.openstreetmap.org/#map=19/48.99957/-110.00728 shows Canada
> and United States on the reverse sides of their shared boundary.
>
I suspect that what's happening is that it's not displaying the text on
a particular side of the boundary, but instead just to one side or the
other? The setting is I guess the "text-dy" below here:
https://github.com/gravitystorm/openstreetmap-carto/blob/0c70682a69c91b833399c1dd74409eee79ce4af1/admin.mss#L168
If you go up a bit from your "wrong side" example to
http://www.openstreetmap.org/query?lat=49.00370&lon=-110.00508#map=19/49.00368/-110.00487
you can see a place where three relation memberships are all displayed
on the same side of the line.
It might be fixable in the style (have a look through the issues at
https://github.com/gravitystorm/openstreetmap-carto/issues ) or it might
need something in mapnik itself (https://github.com/mapnik/mapnik/issues ).
Whilst looking at something completely different (how to use the road
casing to indicate there's a sidewalk) I did come across a hack to
display the road asymetrically over the casing - see
http://www.openstreetmap.org/user/SomeoneElse/diary/38136#comment34110
and
http://gis.stackexchange.com/questions/128244/tilemill-inset-line-with-negative-line-offset-property-value-produces-strange-a
- so something like that might be doable here. Above my Mapnik pay
grade though :)
Cheers,
Andy
More information about the Talk-au
mailing list