-
Notifications
You must be signed in to change notification settings - Fork 273
/
config.js
117 lines (117 loc) · 4.79 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
var config = {
// style: 'mapbox://styles/mapbox/streets-v12',
// leave commented to use Mapbox Standard Style
accessToken: 'YOUR_MAPBOX_ACCESS_TOKEN',
showMarkers: true,
markerColor: '#3FB1CE',
//projection: 'equirectangular',
//Read more about available projections here
//https://docs.mapbox.com/mapbox-gl-js/example/projections/
inset: true,
insetOptions: {
markerColor: 'orange'
},
insetPosition: 'bottom-right',
theme: 'dark',
use3dTerrain: false, //set true for enabling 3D maps.
auto: false,
title: 'Your Title Goes Here',
subtitle: 'The Storytelling Template helps you create an awesome animated map story with ease.',
byline: 'By a I.M. Amapper',
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',
hidden: false,
title: 'San Francisco',
image: './assets/san-fran.jpeg',
description: 'The first chapter contains a title, image, and camera view for San Francisco, California. Update the chapter data to make it your own.',
location: {
center: [-122.418398, 37.759483],
zoom: 8.5,
pitch: 60,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '',
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1,
// duration: 5000
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
},
{
id: 'second-identifier',
alignment: 'right',
hidden: false,
title: 'Washington, D.C.',
image: './assets/washington-dc.jpg',
description: 'The second chapter flies to Washington, D.C., updates the camera pitch, and slowly rotates. <br> <br> Washington, D.C., the capital of the United States, is a vibrant city known for its iconic landmarks, including the White House, the U.S. Capitol, and the Washington Monument. It serves as the political heart of the nation and a center for history, culture, and international diplomacy.',
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: 'Geneva',
image: './assets/geneva.jpg',
description: 'Geneva, Switzerland, is a picturesque city nestled along the shores of Lake Geneva, surrounded by the Alps and Jura mountains. Known as a global hub for diplomacy and finance, it is home to numerous international organizations, including the United Nations and the Red Cross.',
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: 'fully',
hidden: false,
title: 'Buenos Aires',
image: './assets/buenos-aires.jpg',
description: 'Buenos Aires, the capital of Argentina, is a dynamic city known for its European-inspired architecture, vibrant tango culture, and rich culinary scene. Often called the "Paris of South America," it blends historic charm with modern energy. You can add as many chapters as you need, just copy the JSON data and make changes.',
location: {
center: [-58.54195, -34.71600],
zoom: 4,
pitch: 0,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '',
onChapterEnter: [],
onChapterExit: []
}
]
};