-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yml
179 lines (178 loc) · 5.33 KB
/
test.yml
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
title: Navbars Example
view:
baselayer: osm
featurelayers: []
latitude: 41.8667
longitude: 12.4920
maxZoom: 18
minZoom: 0
zoom: 11
controls: []
controls:
attribution: false
legend: false
zoom: false
renderlayers:
- osm
baselayers:
- id: osm
title: OpenStreetMap
description: OpenStreetMap Basemap, Standard Style
type: tiles
source:
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
name: OpenStreetMap
tile:
url: https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png
featurelayers: []
overlays:
- id: attribution
type: text
position:
bottom: 68px
right: 8px
text:
content: "© [OpenStreetMap](http://www.openstreetmap.org/copyright)"
font: { style: normal, family: Verdana, size: 1.2rem }
css:
properties:
- { name: padding, value: 8px }
- { name: background, value: "rgba(0, 0, 0, 0.4)" }
- { name: border, value: "2px solid #0374e6" }
- { name: border-radius, value: 8px }
- { name: line-height, value: 1.2rem }
- { name: color, value: white }
- id: powered_by_geodash
type: text
position:
bottom: 68px
left: 8px
text:
content: "Powered by GeoDash"
font: { style: normal, family: Verdana, size: 1.2rem }
link: { url: "https://geodash.io", target: "_blank" }
css:
properties:
- { name: padding, value: 8px }
- { name: background, value: "rgba(0, 0, 0, 0.4)" }
- { name: border, value: "2px solid #0374e6" }
- { name: border-radius, value: 8px }
- { name: line-height, value: 1.2rem }
- { name: color, value: white }
- id: zoom_in
type: text
title: "Zoom In"
position: { top: 8px, left: 8px, bottom: auto, right: auto }
text:
content: ""
font:
family: FontAwesome
size: 2rem
intents:
- name: zoomIn
properties:
- { name: animate, value: false }
tooltip: { content: "Zoom In" }
css:
properties:
- { name: padding, value: 8px }
- { name: background, value: "rgba(0,0,0, 0.4)" }
- { name: border, value: "2px solid #0374e6" }
- { name: border-radius, value: "8px 8px 0px 0px" }
- { name: line-height, value: 2rem }
- id: zoom_out
type: text
title: "Zoom Out"
position: { top: calc(1rem + 10px + 2rem + 10px), left: 8px, bottom: auto, right: auto }
text:
content: ""
font:
family: FontAwesome
size: 2rem
intents:
- name: zoomOut
properties:
- { name: animate, value: false }
tooltip: { placement: right, content: "Zoom Out" }
css:
properties:
- { name: padding, value: 8px }
- { name: background, value: "rgba(0,0,0, 0.4)" }
- { name: border, value: "2px solid #0374e6" }
- { name: border-radius, value: "0px 0px 8px 8px" }
- { name: line-height, value: 2rem }
- id: popout
type: text
title: "Popout"
position: { top: 1rem, left: auto, bottom: auto, right: 1rem }
text:
content: ""
font: { family: FontAwesome, size: 2rem }
link: { url: "https://viewer.geodash.io/?main:config=https://geodash.io/assets/dashboards/navbars.yml", target: "_blank" }
tooltip: { placement: left, content: "Popout" }
css:
properties:
- { name: padding, value: 8px }
- { name: background, value: "rgba(0,0,0, 0.4)" }
- { name: border, value: "2px solid #0374e6" }
- { name: border-radius, value: 8px }
- { name: line-height, value: 2rem }
navbars:
- id: cities
placement: left
css:
properties:
- name: top
value: 100px
intents:
- name: stateChanged
properties: [{ name: city, value: "{{ tab.value }}" }]
- name: flyToLocation
properties:
- { name: lat, value: "{{ tab.lat }}" }
- { name: lon, value: "{{ tab.lon }}" }
- { name: zoom, value: "{{ tab.zoom }}" }
- { name: projection, value: "{{ tab.projection }}" }
switch: "state.city"
tabs:
- title: Juba
value: juba
tooltip: { content: "Juba, South Sudan" }
lat: 4.8475
lon: 31.5953
zoom: 14
projection: "EPSG:4326"
items:
- title: Info
intents:
- name: intoFeatureLayer
properties:
- { name: name, value: "airports" }
- title: Zoom to Layer
intents:
- name: flyToLocation
properties:
- { name: lat, value: "{{ tab.lat }}" }
- { name: lon, value: "{{ tab.lon }}" }
- { name: zoom, value: "{{ tab.zoom }}" }
- { name: projection, value: "{{ tab.projection }}" }
- title: Toggle Feature Layer
intents:
- name: toggleFeatureLayer
properties:
- { name: name, value: "airports" }
- title: Sana'a
value: sanaa
tooltip: { content: "Sana'a, Yemen" }
lat: 15.3428
lon: 44.2004
zoom: 12
projection: "EPSG:4326"
- title: Aleppo
value: aleppo
tooltip: { content: "Aleppo, Syria" }
lat: 36.2004
lon: 37.1601
zoom: 12
projection: "EPSG:4326"