Changes between Initial Version and Version 1 of Ticket #10394
- Timestamp:
- 2014-08-21T01:25:06+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10394 – Description
initial v1 1 I am trying to set an icon on the beginning and end of ways with a certain condition, i.e. speed limit set, I checked the wikipage for the implementation, and I can use >[index]to select the instance from the relation, and derived that the same could/should be possible for selecting a node on a way. The following snippet doesn't work:1 I am trying to set an icon on the beginning and end of ways with a certain condition, i.e. speed limit set, I checked the wikipage for the implementation, and I can use {{{>[index]}}} to select the instance from the relation, and derived that the same could/should be possible for selecting a node on a way. The following snippet doesn't work: 2 2 3 {{{ 4 #!mapcss 3 5 way[highway][maxspeed] >[index=1] node { 4 6 icon-image: "my_maxspeed.png"; 5 7 } 8 }}} 6 9 7 10 Though I can set a icon on every node, which will look messy: 11 {{{ 12 #!mapcss 8 13 way[highway][maxspeed] > node { 9 14 icon-image: "my_maxspeed.png"; 10 15 } 16 }}} 11 17 12 [index=-1] should be the last entry as well (think that have been mentioned in another ticket) 18 {{{[index=-1]}}} should be the last entry as well (think that have been mentioned in another ticket)


