-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
40 lines (38 loc) · 1023 Bytes
/
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
'use strict';
const LAYERS = 'mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7';
const ACCESS_TOKEN = '';
const STYLE_URL = `https://a.tiles.mapbox.com/v4/${LAYERS}/{z}/{x}/{y}.vector.pbf?access_token=${ACCESS_TOKEN}`;
module.exports = {
SERVER_PORT: 3000,
STYLE: {
'version': 8,
'name': 'Empty',
'sources': {
'mapbox': {
'type': 'vector',
'maxzoom': 15,
'tiles': [
STYLE_URL
]
}
},
'layers': [
{
'id': 'background',
'type': 'background',
'paint': {
'background-color': 'white'
}
},
{
'id': 'water',
'type': 'fill',
'source': 'mapbox',
'source-layer': 'water',
'paint': {
'fill-color': 'blue'
}
}
]
}
};