MapCSS/Common mistakes

From OpenStreetMap Wiki
Revision as of 04:52, 14 April 2015 by Xxzme (talk | contribs) (Quotation marks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.