Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add coloured halo for address nodes

  • Loading branch information...
commit 76d32cd0ef79c3916c7dd4e82a6603dec095e56f 1 parent 4cc5bd7
@cobra cobra authored
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
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 ++ "\"]"
Please sign in to comment.
Something went wrong with that request. Please try again.