[Mapcss] Styles that work with and without background?

Sebastian Klein bastikln at googlemail.com
Sun Oct 10 07:35:32 BST 2010


Komяpa wrote:
> 2010/10/9 Steve Bennett <stevagewp at gmail.com>:
>>  One issue I'm having with making styles for Potlatch2 is coming up
>> with styles that work well over a background and without one. Just
>> wondering if anyone has any tips?
> Think of a thin (.5-1 px) casing of inverted color around your lines.

That should work. In CSS there are media specific styles:

   @media print {
     body {
        color: black;
        background-color: white;
     }
     h1 {
        font-size: 14pt;
     }
   }

This could be adapted to

   @background aerial-imagery {
     way {
         casing-width: 0.6;
     }
     ...
   }

But I'd suggest we keep the syntax simple for now and introduce this 
feature in a later version of MapCSS...


Sebastian



More information about the Mapcss mailing list