Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-05-03 17:26:36 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:39:02 +0300
commit894ba909e6a18c01e1947a100df8143edb95812a (patch)
tree7f3851c172e7e1545f6769478a8759cbd05163b5
parente9ff94fabc74513d5332ef7e4686b05209db75db (diff)
Revert "Revert "Add styles for boundary-administrative-3, 4, 6, 8.""
This reverts commit cdd56786aa27f4c7df010bb433ea53d6a2b4c97d.
-rw-r--r--data/drules_proto.txt338
-rw-r--r--data/visibility.txt12
-rw-r--r--generator/world_map_generator.hpp6
3 files changed, 339 insertions, 17 deletions
diff --git a/data/drules_proto.txt b/data/drules_proto.txt
index 8fcc93d528..b76c378884 100644
--- a/data/drules_proto.txt
+++ b/data/drules_proto.txt
@@ -3264,11 +3264,131 @@ cont {
cont {
name: "boundary-administrative-3"
element {
+ scale: 6
+ lines {
+ width: 0.3125
+ color: 0xFFFF00
+ priority: 55
+ }
+ lines {
+ width: 0.0625
+ color: 0xF9574B
+ dashdot {
+ dd: 0.3125
+ dd: 0.0625
+ dd: 0.0625
+ dd: 0.0625
+ }
+ priority: 56
+ }
+ }
+ element {
+ scale: 7
+ lines {
+ width: 0.625
+ color: 0xFFFF00
+ priority: 56
+ }
+ lines {
+ width: 0.125
+ color: 0xF9574B
+ dashdot {
+ dd: 0.625
+ dd: 0.125
+ dd: 0.125
+ dd: 0.125
+ }
+ priority: 57
+ }
+ }
+ element {
+ scale: 8
+ lines {
+ width: 1.25
+ color: 0xFFFF00
+ priority: 63
+ }
+ lines {
+ width: 0.25
+ color: 0xF9574B
+ dashdot {
+ dd: 1.25
+ dd: 0.25
+ dd: 0.25
+ dd: 0.25
+ }
+ priority: 64
+ }
+ }
+ element {
+ scale: 9
+ lines {
+ width: 1
+ color: 0xFFFF00
+ priority: 63
+ }
+ lines {
+ width: 0.5
+ color: 0xF9574B
+ dashdot {
+ dd: 2.5
+ dd: 0.5
+ dd: 0.5
+ dd: 0.5
+ }
+ priority: 64
+ }
+ }
+ element {
+ scale: 10
+ lines {
+ width: 5
+ color: 0xFFFF00
+ priority: 157
+ }
+ lines {
+ width: 1
+ color: 0xF9574B
+ dashdot {
+ dd: 5
+ dd: 1
+ dd: 1
+ dd: 1
+ }
+ priority: 158
+ }
+ }
+ element {
+ scale: 11
+ lines {
+ width: 10
+ color: 0xFFFF00
+ priority: 157
+ }
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 10
+ dd: 2
+ dd: 2
+ dd: 2
+ }
+ priority: 158
+ }
+ }
+ element {
scale: 12
lines {
width: 2
color: 0xF9574B
- priority: 10440
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10446
}
}
element {
@@ -3276,7 +3396,13 @@ cont {
lines {
width: 2
color: 0xF9574B
- priority: 10467
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10473
}
}
element {
@@ -3284,7 +3410,13 @@ cont {
lines {
width: 2
color: 0xF9574B
- priority: 10587
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10595
}
}
element {
@@ -3292,7 +3424,13 @@ cont {
lines {
width: 2
color: 0xF9574B
- priority: 10791
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10802
}
}
element {
@@ -3300,7 +3438,13 @@ cont {
lines {
width: 2
color: 0xF9574B
- priority: 11401
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 11412
}
}
element {
@@ -3308,16 +3452,164 @@ cont {
lines {
width: 2
color: 0xF9574B
- priority: 11679
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 11690
}
}
}
cont {
name: "boundary-administrative-4"
element {
- scale: 16
+ scale: 6
+ lines {
+ width: 0.3125
+ color: 0xFFFF00
+ priority: 55
+ }
+ lines {
+ width: 0.0625
+ color: 0xF9574B
+ dashdot {
+ dd: 0.3125
+ dd: 0.0625
+ dd: 0.0625
+ dd: 0.0625
+ }
+ priority: 56
+ }
+ }
+ element {
+ scale: 7
+ lines {
+ width: 0.625
+ color: 0xFFFF00
+ priority: 56
+ }
+ lines {
+ width: 0.125
+ color: 0xF9574B
+ dashdot {
+ dd: 0.625
+ dd: 0.125
+ dd: 0.125
+ dd: 0.125
+ }
+ priority: 57
+ }
+ }
+ element {
+ scale: 8
+ lines {
+ width: 1.25
+ color: 0xFFFF00
+ priority: 63
+ }
+ lines {
+ width: 0.25
+ color: 0xF9574B
+ dashdot {
+ dd: 1.25
+ dd: 0.25
+ dd: 0.25
+ dd: 0.25
+ }
+ priority: 64
+ }
+ }
+ element {
+ scale: 9
lines {
width: 1
+ color: 0xFFFF00
+ priority: 63
+ }
+ lines {
+ width: 0.5
+ color: 0xF9574B
+ dashdot {
+ dd: 2.5
+ dd: 0.5
+ dd: 0.5
+ dd: 0.5
+ }
+ priority: 64
+ }
+ }
+ element {
+ scale: 10
+ lines {
+ width: 5
+ color: 0xFFFF00
+ priority: 157
+ }
+ lines {
+ width: 1
+ color: 0xF9574B
+ dashdot {
+ dd: 5
+ dd: 1
+ dd: 1
+ dd: 1
+ }
+ priority: 158
+ }
+ }
+ element {
+ scale: 11
+ lines {
+ width: 10
+ color: 0xFFFF00
+ priority: 157
+ }
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 10
+ dd: 2
+ dd: 2
+ dd: 2
+ }
+ priority: 158
+ }
+ }
+ element {
+ scale: 12
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10446
+ }
+ }
+ element {
+ scale: 13
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10473
+ }
+ }
+ element {
+ scale: 14
+ lines {
+ width: 2
color: 0xF9574B
dashdot {
dd: 12
@@ -3325,7 +3617,35 @@ cont {
dd: 4
dd: 4
}
- priority: 11400
+ priority: 10595
+ }
+ }
+ element {
+ scale: 15
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 10802
+ }
+ }
+ element {
+ scale: 16
+ lines {
+ width: 2
+ color: 0xF9574B
+ dashdot {
+ dd: 12
+ dd: 4
+ dd: 4
+ dd: 4
+ }
+ priority: 11412
}
}
element {
@@ -3339,7 +3659,7 @@ cont {
dd: 4
dd: 4
}
- priority: 11678
+ priority: 11690
}
}
}
diff --git a/data/visibility.txt b/data/visibility.txt
index 28aaf91545..ee28459361 100644
--- a/data/visibility.txt
+++ b/data/visibility.txt
@@ -108,12 +108,12 @@ world 000000000000000000 +
10 000000000000000000 -
11 000000000000000000 -
2 000011111111111111 -
- 3 000000000000111111 -
- 4 000000000000000011 -
+ 3 000001111111111111 -
+ 4 000000111111111111 -
5 000000000000000000 -
- 6 000000000000000000 -
+ 6 000000000000000111 -
7 000000000000000000 -
- 8 000000000000000000 -
+ 8 000000000000000111 -
9 000000000000000000 -
[admin_level] 000000000000000000 -
[border_type] 000000000000000000 -
@@ -130,8 +130,8 @@ world 000000000000000000 +
national_park 000000000011111111 -
{}
building 000000000000000111 +
- entrance 000000000000000001 -
- {}
+ entrance 000000000000000001 -
+ {}
communication 000000000000000000 +
line 000000000000000011 +
[location] 000000000000000000 -
diff --git a/generator/world_map_generator.hpp b/generator/world_map_generator.hpp
index eb7fb08870..c94dfa7b8c 100644
--- a/generator/world_map_generator.hpp
+++ b/generator/world_map_generator.hpp
@@ -48,9 +48,11 @@ public:
: m_worldBucket(info), m_merger(POINT_COORD_BITS)
{
// Do not strip last types for given tags,
- // for example, do not cut "-2" in "boundary-administrative-2"
+ // for example, do not cut 'admin_level' in 'boundary-administrative-XXX'.
char const * arrDontNormalize[][3] = {
- { "boundary", "administrative", "2" }
+ { "boundary", "administrative", "2" },
+ { "boundary", "administrative", "3" },
+ { "boundary", "administrative", "4" }
};
for (size_t i = 0; i < ARRAY_SIZE(arrDontNormalize); ++i)