blob: 9a18a68497baa39ed95687b40dc3ca133e4a5cb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
option optimize_for = LITE_RUNTIME;
message DashDotProto
{
repeated double dd = 1;
optional double offset = 2;
}
message PathSymProto
{
required string name = 1;
required double step = 2;
optional double offset = 3;
}
enum LineJoin
{
ROUNDJOIN = 0;
BEVELJOIN = 1;
NOJOIN = 2;
}
enum LineCap
{
ROUNDCAP = 0;
BUTTCAP = 1;
SQUARECAP = 2;
}
message LineRuleProto
{
required double width = 1;
required uint32 color = 2;
optional DashDotProto dashdot = 3;
required int32 priority = 4;
optional PathSymProto pathsym = 5;
optional LineJoin join = 6;
optional LineCap cap = 7;
}
message LineDefProto
{
required double width = 1;
required uint32 color = 2;
optional DashDotProto dashdot = 3;
optional PathSymProto pathsym = 4;
optional LineJoin join = 6;
optional LineCap cap = 7;
}
message AreaRuleProto
{
required uint32 color = 1;
optional LineDefProto border = 2;
required int32 priority = 3;
}
message SymbolRuleProto
{
required string name = 1;
optional int32 apply_for_type = 2; // 1 - for nodes, 2 - for ways, default - for all
required int32 priority = 3;
}
message CaptionDefProto
{
required int32 height = 1;
required uint32 color = 2;
optional uint32 stroke_color = 3;
optional int32 offset_x = 4;
optional int32 offset_y = 5;
}
message CaptionRuleProto
{
required CaptionDefProto primary = 1;
optional CaptionDefProto secondary = 2;
required int32 priority = 3;
}
message CircleRuleProto
{
required double radius = 1;
required uint32 color = 2;
optional LineDefProto border = 3;
required int32 priority = 4;
}
message PathTextRuleProto
{
required CaptionDefProto primary = 1;
optional CaptionDefProto secondary = 2;
required int32 priority = 3;
}
message ShieldRuleProto
{
required int32 height = 1;
required uint32 color = 2;
optional uint32 stroke_color = 3;
required int32 priority = 4;
}
message DrawElementProto
{
required int32 scale = 1;
repeated LineRuleProto lines = 2;
optional AreaRuleProto area = 3;
optional SymbolRuleProto symbol = 4;
optional CaptionRuleProto caption = 5;
optional CircleRuleProto circle = 6;
optional PathTextRuleProto path_text = 7;
optional ShieldRuleProto shield = 8;
}
message ClassifElementProto
{
required string name = 1;
repeated DrawElementProto element = 2;
}
message ContainerProto
{
repeated ClassifElementProto cont = 1;
}
|