Styling nodes
This query selects shops and amenities within the Colosseum in Rome.
The query selects any node with either the shop or amenity tag. The MapCSS then styles the nodes based on their tags and values. This highlights that the interpreter has access to all of the data about a map feature.
The styling does the following:
- provides a fallback to style any unexpected nodes as red
- styles drinking water fountains as blue circles
- styles shops as black circles with a green fill
- styles toilets by displaying an (oversized!) icon
For icons, Overpass Turbo has three sets available. See the links below.
Note, the ordering of the styles is important. They're applied in order. so if we'd put the fallback style (the red circle) at the end then that's all we'd see. You can try it.
If you're wondering. Its a wastebin.
Links | |
Source File | styling-nodes.osm |
Authors |
|