[OSM-talk] Halcyon/MapCSS question
Steve Bennett
stevagewp at gmail.com
Wed Dec 2 10:40:01 GMT 2009
On Wed, Dec 2, 2009 at 9:10 PM, Richard Fairhurst <richard at systemed.net> wrote:
>
> Steve Bennett wrote:
> > How do you make a style that depends on two attributes? Eg,
> > highway=residential *and* cycleway=lane?
>
> Simply:
>
> way[highway=residential][cycleway=lane] { ...}
>
Thanks, I tried every combination but that one. :)
Next question: when and why do you need to add :area to be able to tag areas?
way[landuse=commercial] { fill-color: purple; }
worked. But this:
way[building=yes] { fill-color: black; }
didn't. And this:
way:area[building=yes] { fill-color: black; }
Did. ?
And finally, I have these rules:
----
way[landuse=commercial] { fill-color: purple;fill-opacity:0.5;z-index:1;}
way:area[building=yes] { fill-color:orange; z-index:4;}
----
Now, some buildings are getting rendered on top of the commercial
areas (and coming out bright orange), and some of them are being
rendered beneath the commercial areas (and coming out a dark red
colour). Bug?
Steve
More information about the talk
mailing list