Opened 11 years ago

Last modified 11 years ago

#10394 closed enhancement

MapCSS: select node on way by index — at Initial Version

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

Description

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:

way[highway][maxspeed] >[index=1] node {
icon-image: "my_maxspeed.png";
}

Though I can set a icon on every node, which will look messy:
way[highway][maxspeed] > node {
icon-image: "my_maxspeed.png";
}

[index=-1] should be the last entry as well (think that have been mentioned in another ticket)

Change History (0)

Note: See TracTickets for help on using tickets.