Opened 12 years ago
Last modified 11 years ago
#10217 closed enhancement
Rotating icon with MapCSS — at Initial Version
| Reported by: | Owned by: | team | |
|---|---|---|---|
| Priority: | normal | Milestone: | 15.04 |
| Component: | Core mappaint | Version: | |
| Keywords: | mapcss rotation | Cc: | Klumbumbus |
Description
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


