[Mapcss] Subpart syntax
Steve Bennett
stevagewp at gmail.com
Thu Feb 24 12:11:31 GMT 2011
On Thu, Feb 24, 2011 at 10:23 PM, Sebastian Klein
<bastikln at googlemail.com> wrote:
> At the same time, it should be possible to _modify_ the rules from the base
> style. (That's what the "cascading" css is all about, right.) E.g. in the
> last example (more POI symbols) it doesn't make sense to have 2 symbols of
> different size, overlapping each other. You either replace the symbol or
> keep the old.
Ah, ok. So the base style defines a certain look for, say
"cycleway=lane", defining a "/lane" subpart, like:
way[cycleway=lane]/bikelane { casing-color: blue; ... }
A user could come along and say the bike lanes should be red...
way/bikelane { casing-color: red; }
That raises the question whether the syntax should distinguish between
defining a subpart, and merely referring to one.
Are there other use cases? It does still seem a bit of an uncommon case here.
Steve
More information about the Mapcss
mailing list