-
Notifications
You must be signed in to change notification settings - Fork 1
/
levels.py
59 lines (56 loc) · 1.16 KB
/
levels.py
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
"""
This document describes the relationship between various
labeling levels in labels-st.svg and how opaque they should
be at each zoom level (scale). These data are used to compose
the scaled tiles from the level tiles, by tiles_labels.py.
"""
LEVELS = dict((
(0, ( # at scale 0, where the whole map is 256x256px, and the quadkey is 0 long
(1, 1), # only level 1 should be visible, and it should be completely opaque
)),
(1, ( # at scale 1, where the whole map is four quads, and the quadkey is 1 long
(1, 1),
(2, .8), # level 2 should be 80% opaque
(3, .6),
)),
(2, (
(1, 1),
(2, 1),
(3, .6),
(4, .6),
)),
(3, (
(1, .6),
(2, .8),
(3, 1),
(4, .8),
(5, .6),
)),
(4, (
(2, .8),
(3, .9),
(4, 1),
(5, .8),
(6, .6),
)),
(5, (
(3, .6),
(4, 1),
(5, 1),
(6, 1),
(7, .8),
)),
(6, (
(4, .8),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
)),
(7, (
(5, .8),
(6, .9),
(7, 1),
(8, 1),
)),
))