blob: cf6a8db6de93126298cb173b1214822b8ffe46f5 (
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
|
enum bucket_type {
fill = 1;
line = 2;
point = 3;
}
enum cap_type {
round = 1;
}
enum join_type {
butt = 1;
bevel = 2;
}
message bucket {
required string name = 1;
required bucket_type type = 2;
// Specify what data to pull into this bucket
required string source_name = 3;
required string source_layer = 4;
optional string source_field = 5;
repeated string source_values = 6;
// Specifies how the geometry for this bucket should be created
optional cap_type cap = 7;
optional join_type join = 8;
optional string font = 9;
optional float fontSize = 10;
}
message structure {
required string name = 1;
optional string bucket_name = 2;
repeated structure child_layers = 3;
}
message width {
optional string scaling = 1;
repeated float values = 2 [ packed = true ];
}
message layer {
required string layer_name = 1;
optional fixed32 color = 2; // rgba (=> rgb << 8 | 0xFF for opaque!)
optional bool antialias = 3;
optional width width = 4;
}
message class {
required string name = 1;
repeated layer layers = 2;
}
// root level object
message style {
repeated bucket buckets = 1;
repeated structure structure = 2;
repeated class classes = 3;
}
|