Opened 12 years ago

Last modified 11 years ago

#10217 closed enhancement

[Patch] Rotating icon with MapCSS — at Version 4

Reported by: Aun Johnsen <lists@…> Owned by: team
Priority: normal Milestone: 15.04
Component: Core mappaint Version:
Keywords: mapcss rotation Cc: Klumbumbus

Description (last modified by simon04)

On some instances it would be desirable if an icon could be rotated. Either by the direction of the road (i.e. a pedestrian crossing) or completely independent

node[highway=crossing]:connected {
    icon-image:    "presets/pedestrian_crossing.png";
    icon-rotation: way;
}

this turns the icon to follow the direction of the way

node[mykey=value] {
    icon-image:   "arrow-symbol.png";
    icon-rotation: 60;
}

this rotates the icon 60 degrees clockwise.

If the syntax doesn't quite fit, feel free to improve

Change History (5)

comment:1 by Don-vip, 12 years ago

Component: CoreCore mappaint
Keywords: rotation added

comment:2 by Don-vip, 12 years ago

Type: defectenhancement

by simon04, 12 years ago

Attachment: 10217.patch added

comment:3 by simon04, 12 years ago

Milestone: 14.07
Summary: Rotating icon with MapCSS[Patch] Rotating icon with MapCSS

comment:4 by simon04, 12 years ago

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