Changes between Initial Version and Version 4 of Ticket #10217
- Timestamp:
- 2014-07-03T23:47:00+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10217
- Property Component Core → Core mappaint
- Property Keywords rotation added
- Property Type defect → enhancement
- Property Milestone → 14.07
- Property Summary Rotating icon with MapCSS → [Patch] Rotating icon with MapCSS
-
Ticket #10217 – Description
initial v4 1 1 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 2 2 3 {{{ 4 #!mapcss 3 5 node[highway=crossing]:connected { 4 6 icon-image: "presets/pedestrian_crossing.png"; 5 7 icon-rotation: way; 6 8 } 9 }}} 7 10 8 11 this turns the icon to follow the direction of the way 9 12 13 {{{ 14 #!mapcss 10 15 node[mykey=value] { 11 16 icon-image: "arrow-symbol.png"; 12 17 icon-rotation: 60; 13 18 } 19 }}} 14 20 this rotates the icon 60 degrees clockwise. 15 21