-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.md.template
72 lines (67 loc) · 2.01 KB
/
map.md.template
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
Site Map Test
=============
{{{
widget:
type: data/map_l
caption: Site Status
data_sources:
nodes:
schema: [['id', 'int'], ['name'], ['site_id', 'int'], ['site_name'], ['status'],
['lat', 'float'], ['lon', 'float']]
database:
query: SELECT n.id, n.client_id as name, s.id as site_id, s.am_name as site_name,
n.status, s.latitude as lat, s.longitude as lon
FROM %s as n, %s as s WHERE n.site_id = s.id
peg_offset: true # resend entire node status every few seconds
mode: update
check_interval: 4
url: postgres://oml2:[email protected]:5432/gec22
links:
schema: [['id', 'int'], ['from_id', 'int'], ['from_if_name'], ['to_id', 'int'],
['to_if_name'], ['status'], ['link_id'], ['from_site_id', 'int'], ['to_site_id', 'int']]
database:
query: SELECT l.*, fn.site_id as from_site_id, tn.site_id as to_site_id
FROM %s as l, %s as fn, %s as tn
WHERE l.from_id = fn.id AND l.to_id = tn.id
peg_offset: true # resend entire node status every few seconds
mode: update
check_interval: 4
url: postgres://oml2:[email protected]:5432/gec22
width: 1.0
hide_site_internals: {to: 6} # visible from and including 6
map:
center: [-98.0, 35.0]
zoom: 4
grayscale: true
tile_provider: esri_world_topo
mapping:
nodes:
id: id
site: site_id # identify site
status: status
latitude:
property: lat
longitude:
property: lon
radius: 10
fill_color:
property: status
color:
unknown: gray
down: lightblue
up: green
error: red
links:
from: from_id
to: to_id
from_site: from_site_id # identify site
to_site: to_site_id
stroke_color:
property: status
color:
unknown: gray
down: orange
up: green
error: red
stroke_width: 4
}}}