This repository has been archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
110 lines (109 loc) · 4.09 KB
/
config.js
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
const version = 0.2;
module.exports = {
accessToken : process.env.ACCESSTOKEN,
attribution : '©NARWASSCO,Ltd.',
styles : [
{ title: 'UNVT Water (OSM)', uri: `https://narwassco.github.io/mapbox-stylefiles/unvt/style.json?version=${version}`,},
{ title: 'UNVT Water (Building)', uri: `https://narwassco.github.io/mapbox-stylefiles/unvt/style-buildings.json?version=${version}`,},
{ title: 'Satellite Water', uri: `https://narwassco.github.io/mapbox-stylefiles/unvt/style-aerial.json?version=${version}`,},
{ title: 'UNVT Sewer', uri: `https://narwassco.github.io/mapbox-stylefiles/unvt/style-sewer.json?version=${version}`,},
{ title: 'Satellite Sewer', uri: `https://narwassco.github.io/mapbox-stylefiles/unvt/style-aerial-sewer.json?version=${version}`,},
],
center: [35.87063, -1.08551],
zoom: 13,
search:{
url: 'https://narwassco.github.io/vt/meter.geojson',
target: ['connno', 'serialno'],
format: (p) => {return `${p.customer}, ${p.connno}, ${p.serialno}, ${p.village}`},
place_type: ['meter'],
placeholder: 'Search CONN NO or S/N',
zoom: 17,
},
popup: {
target: ['meter','flow meter','valve','washout','firehydrant','tank','pipeline','pg-building', 'sewer-connection', 'sewer_commercial', 'sewer_institution', 'sewer_public_toilet', 'sewer_pipeline', 'sewer_treatment_plant', 'manhole']
},
areaSwitcher: {
areas : [
{title: 'Narok',latlng: [35.87063, -1.08551],zoom: 14,},
{title: "Ololulung'a",latlng: [35.65072, -1.0085],zoom: 13},
{title: "Kilgoris",latlng: [34.87533, -1.00278],zoom: 14},
{title: "Suswa",latlng: [36.33078, -1.05307],zoom: 13}
]
},
legend:{
targets:{
'pipeline': 'Pipeline',
'pipeline_annotation': 'Pipeline Label',
'meter': 'Water Meter',
'flow meter': 'Flow Meter',
'valve': 'Valve',
'firehydrant': 'Fire Hydrant',
'washout': 'Washout',
'tank': 'Tank',
'tank_annotation': 'Tank Label',
'wtp': 'WTP',
'wtp_annotation': 'WTP Label',
'intake': 'Intake',
'intake_annotation': 'Intake Label',
'parcels': 'Parcels',
'parcels_annotation': 'Parcels Label',
'village': 'Village',
'village_annotation': 'Village Label',
'dma': 'DMA',
'dma-annotation': 'DMA Label',
'contour-line': 'Countour',
'contour-label': 'Contour Label',
'hillshade': 'Hillshade',
'sewer_connection': 'Households (Sewer)',
'sewer_commercial': 'Commecial (Sewer)',
'sewer_institution': 'Institution (Sewer)',
'sewer_public_toilet': 'Public Toilet (Sewer)',
'manhole': 'Manhole',
'sewer_pipeline': 'Sewer pipeline',
'sewer_treatment_plant': 'Wastewater treatment plant'
},
options: {
showDefault:false,
showCheckbox:true,
reverseOrder:true,
onlyRendered:true
}
},
elevation: {
url: 'https://narwassco.github.io/narok-terrain/tiles/{z}/{x}/{y}.png',
options: {
font: ['Roboto Medium'],
fontSize: 12,
fontHalo: 1,
mainColor: '#263238',
haloColor: '#fff',
}
},
valhalla: {
url: 'https://valhalla.water-gis.com',
options: {
Contours: [
{
time: 3,
distance: 1,
color: 'ff0000',
},
{
time: 5,
distance: 2,
color: 'ffff00',
},
{
time: 10,
distance: 3,
color: '0000ff',
},
{
time: 15,
distance: 4,
color: 'ff00ff',
},
]
}
}
}