-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
116 lines (115 loc) · 4.66 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
var config = {
style: 'mapbox://styles/alanacg/clrjmsn2r000b01p58f1p9cne',
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: 'The Title Text of this Story',
subtitle: 'A descriptive and interesting subtitle to draw in the reader',
byline: 'By a Digital Storyteller',
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, //can hide panel with this
title: 'Display Title',
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, //how close/far you are from map content
pitch: 60, //angle from azimuth to view the map at (0 is straight on)
bearing: 0 //offset from 0°N map is viewed from
},
mapAnimation: 'flyTo', //more options in mapbox/storytelling repo
// 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
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', //need unique id for each chapter
alignment: 'right',
hidden: false,
title: 'Second Title',
image: 'images/target.svg',
description: 'Copy these sections to add to your story.',
location: {
center: [-77.020636, 38.886900],
zoom: 8.5,
pitch: 60,
bearing: -43.2,
},
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: []
}
//Add any new chapters above this line
//Do not edit the two brackets below this line
]
};