generated from alanacg/GEOG422storytest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
147 lines (146 loc) · 5.82 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
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
var config = {
style: 'mapbox://styles/alanacg/clri954qp00dy01qocvvp6hjg',
accessToken: 'pk.eyJ1IjoiYWxhbmFjZyIsImEiOiJjbHI2dTdmaTgyYmJkMmtteWg4aTFyYjd0In0.4egkQvHeJNw_VNBgcSEZmg',
showMarkers: true,
markerColor: '#3FB1CE',
//projection: 'equirectangular',
//Read more about available projections here
//https://docs.mapbox.com/mapbox-gl-js/example/projections/
inset: false,
theme: 'dark',
use3dTerrain: false, //set true for enabling 3D maps.
auto: false,
title: 'Example Storytelling for Lab Meeting',
subtitle: 'A descriptive and interesting subtitle to draw in the reader',
byline: 'By Alana Ginsburg',
footer: 'Source: source citations, etc. <br> Created using <a href="https://github.com/mapbox/storytelling" target="_blank">Mapbox Storytelling</a> template.',
chapters: [
{
id: 'slug-style-id',
alignment: 'left', //options are left, right, center, full
hidden: false,
title: 'Testing to see if anything changes',
image: 'images/source.png',
description: '<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident </p>',
//text for description is html- can rely on that for extra formatting
location: {
center: [-75.74523, 41.45817], //longitude, latitude
zoom: 8.16,
pitch: 45.00,
bearing: -28.80
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '', //add additional js function for this key
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1,
// duration: 5000
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
},
{
id: 'second-identifier',
alignment: 'right',
hidden: false,
title: 'Second Title',
image: 'images/source.png',
description: 'Copy these sections to add to your story.',
location: {
center: [-77.020636, 38.886900],
zoom: 8.5,
pitch: 60,
bearing: -43.2,
// flyTo additional controls-
// These options control the flight curve, making it move
// slowly and zoom out almost completely before starting
// to pan.
//speed: 2, // make the flying slow
//curve: 1, // change the speed at which it zooms out
},
mapAnimation: 'flyTo',
rotateAnimation: true,
callback: '',
onChapterEnter: [],
onChapterExit: []
},
{
id: 'third-identifier',
alignment: 'left',
hidden: false,
title: 'Third Title',
image: 'images/source.png',
description: 'Copy these sections to add to your story.',
location: {
center: [6.15116, 46.20595],
zoom: 12.52,
pitch: 8.01,
bearing: 0.00
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '',
onChapterEnter: [],
onChapterExit: []
},
{
id: 'fourth-chapter',
alignment: 'full',
hidden: false,
title: 'Third Title',
image: 'images/source.png',
description: 'Copy these sections to add to your story.',
location: {
center: [-58.54195, -34.71600],
zoom: 4,
pitch: 0,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '',
onChapterEnter: [],
onChapterExit: []
},
{
id: 'fifth-chapter',
alignment: 'left', //options are left, right, center, full
hidden: false,
title: 'Added Chapter',
image: 'images/source.png',
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
//text for description is html- can rely on that for extra formatting
location: {
center: [-122.418398, 37.759483],
zoom: 8.5,
pitch: 60,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '', //add additional js function for this key
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1,
// duration: 5000
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
},
//add new chapters ahead of this line
//don't edit after this line
]
};