-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.js.example
85 lines (85 loc) · 3.5 KB
/
config.js.example
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
var config = {
style: 'map/style.json',
showMarkers: true,
markerColor: '#3FB1CE',
inset: true, // if inset map is set to true, legend will be disabled.
legend: false, // if legend is set to true, inset will be disabled.
theme: 'dark',
use3dTerrain: false, //set true for enabling 3D maps. You will need to provide your own terrain tiles.
useCustomLayers: false, //set true for enabling custom layers from sources.js
bookmarks: true,
chapterReturn: true,
title: 'The Title Text of this Story',
logo: '',
subtitle: 'A descriptive and interesting subtitle to draw in the reader',
byline: 'By a Digital Storyteller',
mobileview: '<div id="rotate-mobile"><em>For optimal viewing of this storytelling map on mobile, rotate your device to a horizontal orientation.</em><br><br><img src="images/device.png">', // to add custom messaging in the header for mobile devices
footer: 'Source: source citations, etc.<br> Created using <a href="https://github.com/digidem/maplibre-storymap" target="_blank">MapLibre Storytelling</a> template.',
chapters: [
{
id: 'slug-style-id',
alignment: 'left',
hidden: false,
title: 'Display Title',
image: './path/to/image/source.png',
caption: 'Source image caption',
website: '<a href="" target="_blank">Website</a>',
author: 'Digital Storyteller',
legend: '<span style="font-size: 0.85em;"><em>Legend content</em></span>',
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.',
location: {
center: [35, 1],
zoom: 3.5,
pitch: 0,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
spinGlobe: false,
mapInteractive: true,
callback: '',
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1,
// duration: 5000
// }
// {
// layer: 'countries-fill',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
},
{
id: 'other-identifier',
alignment: 'right',
hidden: false,
title: 'Second Title',
image: './path/to/image/source.png',
description: 'Copy these sections to add to your story.',
location: {
center: [-79, 0],
zoom: 5,
pitch: 0,
bearing: -90
},
mapAnimation: 'flyTo',
rotateAnimation: false,
mapInteractive: false,
callback: '',
onChapterEnter: [
// {
// layer: 'countries-fill',
// opacity: 0
// }
],
onChapterExit: []
}
]
};