mueschel / OsmDestinationToSVG

Render OSM destination tags as SVG graphics
2 stars 0 forks source link

Colour wrongly applied to text instead of background in some cases #2

Closed ygra closed 2 years ago

ygra commented 2 years ago

Cf. http://osm.mueschelsoft.de/destinations/example/sandbox.htm#country=DE&tags=destination:lanes=Herrenberg;Rottenburg;Kliniken;Universit%C3%A4t|Herrenberg;Rottenburg;Kliniken;Universit%C3%A4t|Stuttgart;Reutlingen;Zentrum%0Adestination:ref:to:lanes=A81|A81|%0Adestination:ref:lanes=B28|B28|B28%0Adestination:symbol:to:lanes=motorway|motorway|%0Adestination:symbol:lanes=;;hospital;;camping_site|;;hospital;;camping_site|%0Aoneway=yes%0Aturn:lanes=left|left|through;right%0Adestination:colour=none;none;white;white|none;none;white;white|none;none;white%0Adestination:arrow:lanes=left|left|right

which is my attempt at recreating this sign:

image

"Universität" should have white background, not foreground, and I think the tagging to be correct.

(There's also the issue of the icon not being applied to the correct line, but perhaps that's a missing feature here; I think the tagging for that is correct as well.)

mueschel commented 2 years ago

Hi, there are three issues here:

http://osm.mueschelsoft.de/destinations/example/sandbox.htm#country=DE&tags=destination:lanes=Herrenberg;Rottenburg;Kliniken;Universit%C3%A4t;|Herrenberg;Rottenburg;Kliniken;Universit%C3%A4t;|Stuttgart;Reutlingen;Zentrum%0Adestination:ref:to:lanes=A81|A81|%0Adestination:ref:lanes=B28|B28|B28%0Adestination:symbol:to:lanes=motorway|motorway|%0Adestination:symbol:lanes=;;hospital;;camp_site|;;hospital;;camp_site|%0Aoneway=yes%0Aturn:lanes=left|left|through;right%0Adestination:colour:lanes=none;none;white;white|none;none;white;white|none;none;white%0Adestination:arrow:lanes=left|left|right

ygra commented 2 years ago

Ah, thanks. All that is probably somewhat ill-specified with few implementations at all. I'll keep those limitations in mind for future signs :)