MapCSS/Common mistakes

From OpenStreetMap Wiki
Jump to navigation Jump to search

information sign

This article is a stub. You can help OpenStreetMap by expanding it.

Comma and whitespace after last selector will match everything!

way[building], { fill-color: red; } will result in all objects filled in red, not only ways with building tag. Correct code obvious:

way[building] { fill-color: red; }

Whitespace in selectors is significant

See main page for details.

Quotation marks

Unlike in JOSM and several OSM processors, way[building]["addr:housenumber"] will result in syntax error.