MapCSS/Common mistakes

From OpenStreetMap Wiki
Jump to navigation Jump to search

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.