[Potlatch-dev] working with range attribute selector

Alexandru icidrop at yahoo.com
Wed Nov 2 09:13:53 GMT 2011


I want to apply different line width depending on a number. This is what i'm writing
/* 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=<4] {width: 2;}
way[cable=optic][total_fibres=<23] {width: 3;}
way[cable=optic][total_fibres=<46] {width: 4;}
way[cable=optic][total_fibres=<92] {width: 5;}

But the problem is that i can only make it display two widths, apparently 2 and 3. If i specify total_fibres=44, for example, it doesn't work/changes. What am i doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/potlatch-dev/attachments/20111102/14ab272f/attachment.html>


More information about the Potlatch-dev mailing list