-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.yaml
107 lines (100 loc) · 3.88 KB
/
scene.yaml
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
global:
bbox_bc: https://xyz.api.here.com/hub/spaces/EDwssu42/bbox?west=-139.061110259&south=48.22455359&east=-114.05382241&north=60.0020482135
bbox_studio:
https://xyz.api.here.com/hub/spaces/niaLjvic/bbox?west=-139.061110259&south=48.22455359&east=-114.05382241&north=60.0020482135
point_size: [[5,20px],[10,30px],[20,200px]]
import:
- https://www.nextzen.org/carto/refill-style/refill-style.zip
- https://www.nextzen.org/carto/refill-style/themes/color-gray-gold.zip
- https://s3.amazonaws.com/xyz-demo/data/demo.yaml
- https://www.nextzen.org/carto/refill-style/themes/terrain-shading.zip
# - https://www.nextzen.org/carto/refill-style/themes/terrain-shading-dark.zip
sources:
# mapzen:
# type: MVT
# url: https://xyz.api.here.com/tiles/osmbase/256/all/{z}/{x}/{y}.mvt
_xyzspace:
url: global.bbox_studio
# url: https://xyz.api.here.com/hub/spaces/niaLjvic/tile/web/{z}_{x}_{y}
type: GeoJSON
url_params:
access_token: AeE9KOkDbjkbmUv8bpM8ZC4
_bc:
url: https://xyz.api.here.com/hub/spaces/LdmvFlzZ/search
type: GeoJSON
url_params:
access_token: AVoxWfIDYgZOr4zOaUV3urg
tags: british_columbia
styles:
_points:
base: points
blend: overlay
blend_order: 10
_text:
base: text
blend: overlay
blend_order: 21
layers:
_xyz_dots:
# enabled: false
filter:
all:
- $geometry: point
- centroid: false
data: {source: _xyzspace}
dots:
filter: {$zoom: {min: 10}}
# enabled: false
draw:
_points:
collide: false
color: [1,1,1,0.0]
size: global.point_size
text:
collide: false
# text_source: points
text_source: |
function(){
if ($zoom > 11){
return feature.municipality + "\n" + feature.points
} else {return feature.points}
}
font:
fill: lightblue
size: 12px
stroke:
color: black
width: 2px
emoji:
# enabled: false
draw:
_text:
interactive: true
collide: false
repeat_distance: 0
text_source: |
function(){
if (feature.points < 2){return '😱'}
if (feature.points < 3){return '😳'}
if (feature.points < 4){return '😬'}
if (feature.points < 5){return '🤔'}
if (feature.points < 6){return '🙂'}
if (feature.points < 7){return '😃'}
if (feature.points < 7.7){return '😍'}
if (feature.points < 9){return '😎'}
}
font:
fill: black
# size: 20px
size: global.point_size
_bc:
data: {source: _bc}
filter: {$zoom: {min: 8}}
country:
draw:
country-outerline:
style: lines
order: 100
# order: function() { return (feature.sort_rank -1); }
color: global.light_color
width: [[0, 0px], [4, 2px], [8, 5px], [14, 7px], [17, 14m]]