-
Notifications
You must be signed in to change notification settings - Fork 0
/
small_example2.mrules
90 lines (77 loc) · 1.98 KB
/
small_example2.mrules
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
features
points, areas
//GRID POIs
grid letter : grid=letter AND letter:pos=top AND NOT conflict=left
grid number : grid=letter AND letter:pos=left AND NOT conflict=top
//grid debug : grid=letter AND (debug=origin)
areas
lines
//Grid lines
grid lines : grid=line AND NOT (conflict="top" OR conflict="left")
grid boarder : grid=boarder AND ( boarder:kind="outer" OR ( boarder:kind="inner" AND ( boarder:pos="left" OR boarder:pos="top" ) ) )
points
properties
map-background-color : #F1EEE8
map-background-opacity : 1
map-sea-color : #B5D0D0
font-weight : bold
font-family : Verdana
text-max-width : 7
text-halo-width : 25%
text-halo-opacity : 0.75
text-align-horizontal : center
text-align-vertical : center
font-stretch : 0.9
map.rendering.lflp.min-buffer-space : 5
map.rendering.lflp.max-allowed-corner-angle : 40
rules
//grid style
target : grid conflict
define
min-zoom : 13
line-color : #FF0000
line-width : 1
draw : line
target : grid lines
define
min-zoom : 13
line-color : #0000FF
line-width : 1
draw : line
target : grid boarder
define
min-zoom : 13
line-color : #2B80FF
line-width : 3
draw : line
target : grid number
define
min-zoom : 13
text-offset-vertical : 0
text-offset-horizontal : 0
font-size : 20
//text-color : #FE802B
text-color : #2B80FE
//text : @if(conflict, "!" [[letter:no]] "!", [[letter:no]])
text : [[letter:num]]
draw : text
target : grid letter
define
min-zoom : 13
text-offset-vertical : 0
text-offset-horizontal : 0
font-size : 20
text-color : #2B80FE
//text : @if(conflict, "!" [[letter:alph]] "!", [[letter:alph]])
text : [[letter:alph]]
draw : text
target : grid debug
define
min-zoom : 13
text-offset-vertical : 0
text-offset-horizontal : 0
font-size : 20
text-color : #2B80FE
text : @if(debug, "X")
draw : text
//\\grid style - ende