Opened 5 years ago

Last modified 5 years ago

#20004 new defect

Most of the icons only rendered with access: but not with vehicle: — at Version 2

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: External mappaint style Version:
Keywords: Cc: imagic

Description (last modified by Klumbumbus)

Lanes and Road Attributes mappaint style

I found that if you create access restrictions on ways, the icons rendered with access:forward, but not with vehicle:forward.

It's a problem because the restrictions usually come from traffic signs which apply only vehicles, making usage of access: wrong (in most cases).

Example:

bicycle:forward=yes|no
hgv:forward=yes|yes
highway=residential
lanes:backward=1
lanes:forward=2
lanes=3
taxi:forward=yes|no
vehicle:forward=no|no /* change this to access:forward to get icons */

Solution

Handle vehicle: similarly as access: when dealing with icons.

Change History (2)

comment:1 by skyper, 5 years ago

There are problems with the transport mode icons and the access definitions, e.g. below does show a warning and the rendering of both the access strips and the bus icon is not right.

access:lanes:forward=no|no
bus:lanes:forward=yes|designated
bus=yes
highway=residential
lanes:backward=1
lanes:forward=2
lanes=3
vehicle=no
  • I am not sure about your example. Think you need to add :lanes to all transport mode access tags.
  • The lanes-proposal did define access:lanes[:forward/backward] and than allow certain modes again, e.g. you could work around it. Additionally, it was proposed before vehicle got popular. Do I need to add [motor_]vehicle to the Lanes preset?
  • Last but least [motor_]vehicle=* is not rendered by the internal style. So I would start there to introduce the rendering of vehicle=*

comment:2 by Klumbumbus, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.