[gnome-maps/wip/jonasdn/vector-tiles] Update style
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/jonasdn/vector-tiles] Update style
- Date: Wed, 29 Apr 2015 21:42:44 +0000 (UTC)
commit 96e64ef6e08878f209d5eaf2ce230eab7f9270df
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Wed Apr 29 23:42:29 2015 +0200
Update style
data/gnome-maps.mapcss | 183 ++++++++++++++++++++++--------------------------
1 files changed, 84 insertions(+), 99 deletions(-)
---
diff --git a/data/gnome-maps.mapcss b/data/gnome-maps.mapcss
index 13f8fa3..07069c5 100644
--- a/data/gnome-maps.mapcss
+++ b/data/gnome-maps.mapcss
@@ -35,131 +35,119 @@ canvas {
}
-/* This applies to all lines drawn */
-way {
- color: #777777;
- width: 1;
- linecap: round;
-}
-
-/* All lines with the tag 'highway' */
-
-
-way[highway] {
- color: #ffffff;
- linecap: round;
- casing-linecap: round;
- linejoin: miter;
- casing-linejoin: miter;
- casing-width: 1;
- width: 5;
- casing-color: #C7B8A4;
-}
-
-way|z0-7[highway] {
- width: 1;
- color: #777777;
- casing-width: 0;
+/* Roads */
+way|z8-17[highway=motorway] {
+ color: #f57900;
}
-way[highway=service] {
- width: 2;
+way|z9-17[highway=trunk], way|z9-17[highway=primary] {
+ color: #edd400;
}
-way[highway=living_street] {
- width: 3;
+way|z10-17[highway=secondary], way|z10-17[highway=tertiary],
+way|z12-17[highway=unclassified] {
+ color: #d2ccc3;
}
-way[highway=pedestrian] {
- color: #dddddd;
+way|z9[highway=trunk], way|z9[highway=primary] {
+ width: 1;
}
-/* Applies to all lines drawn that passes these tests */
-way[highway=motorway] {
- casing-width: 3;
- casing-color: #ff9966;
- color: #ffff00;
+way|z9[highway=motorway], way|z10[highway=trunk], way|z10[highway=primary] {
width: 2;
}
-way|z15-18[highway=motorway] {
- casing-width: 0.95;
- casing-color: #774433;
- color: #ff9966;
- width: 5;
-}
-
-way[highway=motorway_link] {
- casing-width: 0.95;
- casing-color: #774433;
- color: #ff9966;
+way|z10[highway=motorway], way|z11[highway=trunk], way|z11[highway=primary] {
width: 3;
}
-way[highway=trunk], way[highway=trunk_link] {
- casing-width: 0.95;
- color: #ff9966;
- casing-color: #bb5500;
- width: 5;
-}
-way[highway=primary], way[highway=primary_link] {
- casing-width: 0.8;
- width: 2;
- color: #ffbb88;
- casing-color: #cc6600;
+way|z11[highway=motorway], way|z12[highway=trunk], way|z12[highway=primary] {
+ width: 4;
}
-way[highway=footway] {
- color: #770000;
- width: 1;
- dashes: 2, 2;
- casing-width: 0;
+way|z12-17[highway=motorway], way|z13-17[highway=trunk] {
+ width: 5;
}
-way[highway=cycleway] {
- color: #000077;
+way|z10[highway=secondary],
+way|z11[highway=tertiary],
+way|z12[highway=unclassified],
+way|z12[highway=road],
+way|z13[highway=residential],
+way|z15[highway=service],
+way|z15[highway=footway],
+way|z15[highway=cycleway],
+way|z15[highway=path],
+way|z15[highway=pedestrian],
+way|z15[highway=track],
+way|z15[highway=living_street],
+way|z15[highway=steps] {
+ color: #c7b8a4;
width: 1;
- dashes: 2, 2;
- casing-width: 0;
}
-way[highway=path] {
- color: #000000;
- width: 0.5;
- dashes: 5, 4;
- casing-width: 0;
-}
-
-way[highway=steps] {
- color: #a00000;
+way|z11[highway=secondary],
+way|z12[highway=tertiary],
+way|z13[highway=unclassified],
+way|z13[highway=road],
+way|z14[highway=residential],
+way|z16[highway=service],
+way|z16[highway=footway],
+way|z16[highway=cycleway],
+way|z16[highway=path],
+way|z16[highway=pedestrian],
+way|z16[highway=track],
+way|z16[highway=living_street],
+way|z16[highway=steps] {
width: 2;
- dashes: 1, 1;
- casing-width: 0;
-}
-
-way[highway=track] {
- color: #826a52;
- width: 1;
- dashes: 8, 8;
- casing-width: 0;
+ color: #ffffff;
+ casing-width: 1;
+ casing-color: #c7b8a4;
+}
+
+way|z12[highway=secondary],
+way|z13[highway=tertiary],
+way|z14[highway=unclassified],
+way|z14[highway=road],
+way|z15[highway=residential],
+way|z17[highway=service],
+way|z17[highway=footway],
+way|z17[highway=cycleway],
+way|z17[highway=path],
+way|z17[highway=pedestrian],
+way|z17[highway=track],
+way|z17[highway=living_street],
+way|z17[highway=steps] {
+ width: 3;
+ color: #ffffff;
+ casing-width: 1;
+ casing-color: #c7b8a4;
}
-way[railway=rail] {
+way|z13[highway=secondary],
+way|z14[highway=tertiary],
+way|z15[highway=unclassified],
+way|z15[highway=road],
+way|z16[highway=residential] {
+ width: 4;
color: #ffffff;
- width: 2;
- casing-color: #777777;
- casing-width: 1;
- dashes: 7, 10;
+ casing-width: 2;
+ casing-color: #c7b8a4;
}
-way[railway=tram], way[railway=lightrail] {
- color: #000000;
- width: 2;
- casing-width: 0;
+way|z14-17[highway=secondary],
+way|z15-17[highway=tertiary],
+way|z16-17[highway=unclassified],
+way|z16[highway=road],
+way|z17[highway=residential] {
+ width: 5;
+ color: #ffffff;
+ casing-width: 3;
+ casing-color: #c7b8a4;
}
-way[railway=preserved], way[railway=narrow_gauge] {
- width: 1;
+way|z11-12[highway=residential] {
+ opacity: 0;
}
area {
@@ -258,6 +246,3 @@ way[is_tunnel=yes] {
width: 2;
dashes: 3, 3;
}
-
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]