[Potlatch-dev] working with range attribute selector

Alexandru icidrop at yahoo.com
Thu Nov 3 10:56:57 GMT 2011


Nope, it still doesn't work. This is my code.
/* Cables */
way[cable=optic] {text:name; text-color: black; font-size: 10; text-position: line; text-halo-color: white; text-halo-radius: 2; color: blue; width: 2;}

way[cable=optic][total_fibres>190] {width: 6;}
way[cable=optic][total_fibres<=92] {width: 5;}
way[cable=optic][total_fibres<=46] {width: 4;}
way[cable=optic][total_fibres<=8] {width: 3;}


Changing to ascendant order doesn't help too. 


________________________________
From: Richard Fairhurst <richard at systemeD.net>
To: potlatch-dev at openstreetmap.org
Sent: Wednesday, November 2, 2011 7:00 PM
Subject: Re: [Potlatch-dev] working with range attribute selector

Komzpa wrote:
> The sign is called "less or equal" and is spelled "<=", if I remember
> correctly.

Yep. And you probably want to put <=92 as the first line and <=4 as the
last, as rules are executed in order...

cheers
Richard



_______________________________________________
Potlatch-dev mailing list
Potlatch-dev at openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/potlatch-dev/attachments/20111103/f3ef9a19/attachment.html>


More information about the Potlatch-dev mailing list