Permalink
Browse files

Added sample variables to README

  • Loading branch information...
1 parent 400b482 commit 5dcaf91ac1563d21407306a11995bcfaa22b7ad7 @migurski migurski committed May 29, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 README.md
View
@@ -10,18 +10,22 @@ symbolizers and provides a mechanism for inheritance.
Cascadenik supports many of Mapnik’s features in a simple declarative form:
+ /* Define a few colors */
+ @black: #000;
+ @orange: #f90;
+
/* Start with a white background */
Map
{
- map-bgcolor: #000;
+ map-bgcolor: #fff;
}
/* Draw roads as orange lines */
#roads
{
/* Usually, 3px wide */
line-width: 3;
- line-color: #f90;
+ line-color: @orange;
/* Make the important ones wider */
&[kind=major] { line-width: 4 }
@@ -32,7 +36,7 @@ Cascadenik supports many of Mapnik’s features in a simple declarative form:
{
text-placement: line;
text-face-name: "DejaVu Sans Book";
- text-fill: #000;
+ text-fill: @black;
text-size: 12;
}
}

0 comments on commit 5dcaf91

Please sign in to comment.