Permalink
Browse files

add coloured halo for address nodes

  • Loading branch information...
1 parent 4cc5bd7 commit 76d32cd0ef79c3916c7dd4e82a6603dec095e56f @cobra cobra committed Nov 19, 2012
Showing with 900 additions and 0 deletions.
  1. +899 −0 dist/coloured-addresses.mapcss
  2. +1 −0 palette_generator.hs
View
899 dist/coloured-addresses.mapcss
899 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 palette_generator.hs
@@ -31,6 +31,7 @@ prefix_color = [([i,j], colors!!(hash (ord i) (ord j))) |
rule (prefix, color) =
"area[building]" ++ prefixfun "addr:street" prefix ++ " {" ++ colorfun "color" ++ colorfun "fill-color" ++ "}\n" ++
+ "node" ++ prefixfun "addr:street" prefix ++ "::halo" ++ " {" ++ colorfun "color" ++ colorfun "symbol-fill-color" ++ "symbol-shape: circle; symbol-size: 20; z-index: -1;" ++ "}\n" ++
"way" ++ prefixfun "name" prefix ++ " {" ++ colorfun "color" ++ "}\n"
where
prefixfun k v = "[\"" ++ k ++ "\"^=\"" ++ v ++ "\"]"

0 comments on commit 76d32cd

Please sign in to comment.