-
Notifications
You must be signed in to change notification settings - Fork 0
/
site-config.js
52 lines (41 loc) · 1.39 KB
/
site-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
var site_config = {
/* Mapbox Access Token */
accessToken: 'pk.eyJ1IjoiZWFydGhyaXNlIiwiYSI6ImNsa2d4eGhvaTAxb3gzcHAyem5weDY5bGgifQ.dir6j-9L6fv7Q9g_DwT51w',
/* Mapbox Base Map Style */
mapStyle: 'mapbox://styles/earthrise/clit4wm0101wk01pd1nm7gmro/',
/* Zoom level that asset detail cards open at; this is a good one to override in tracker config,
depending on scale of facilities */
img_detail_zoom: 15,
/* Define labels for sitewide colors, referenced in tracker config */
colors: {
'red': '#c74a48',
'blue': '#5c62cf',
'green': '#4c9d4f',
'grey': '#8f8f8e'
},
/* Mapbox styling applied to all trackers */
paint: {
'circle-opacity':.85
},
/* radius associated with minimum/maximum value on map */
minRadius: 2,
maxRadius: 10,
/* radius to increase min/max to under high zoom */
highZoomMinRadius: 4,
highZoomMaxRadius: 32,
/* define column names to pull data from */
linkField: 'url',
countryField: 'country',
statusField: 'status',
capacityField: 'capacity',
locationColumns:{
lat: 'lat',
lng: 'lng'
},
/* by default, no all phases link; override in tracker config where appropriate */
showAllPhases: false,
/* zoom level to set map when viewing all phases */
phasesZoom: 8,
/* initial load zoom multiplier */
zoomFactor: 1.25
};