Skip to content

Commit 816e898

Browse files
committed
initial commit
1 parent f09cb61 commit 816e898

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

html/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
<script type="text/javascript">
122122

123-
var styles = ["cyclemap", "xray"];
123+
var styles = ["shadow", "cyclemap", "xray"];
124124

125125
function loadJson(file) {
126126
return new Promise(function (resolve, reject) {

html/shadow-base.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": 8,
3+
"name": "Mapbox Local",
4+
"metadata": {},
5+
"sources": {
6+
"local": {
7+
"type": "vector",
8+
"minzoom": 8,
9+
"tiles": [
10+
"https://tiles.cyclemap.link/local/{z}/{x}/{y}.mvt"
11+
]
12+
},
13+
"global": {
14+
"minzoom": 3,
15+
"type": "vector",
16+
"tiles": [
17+
"https://tiles.cyclemap.link/global/{z}/{x}/{y}.mvt"
18+
]
19+
}
20+
},
21+
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
22+
"layers": []
23+
}

html/shadow-layers.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[{
2+
"id": "background",
3+
"type": "background",
4+
"paint": {
5+
"background-color": "#eee"
6+
}
7+
},
8+
{
9+
"id": "water-ocean",
10+
"type": "fill",
11+
"source": "global",
12+
"source-layer": "water",
13+
"paint": {
14+
"fill-color": "#444",
15+
"fill-outline-color": "rgba(0,0,0,0)"
16+
}
17+
},
18+
{
19+
"id": "roads",
20+
"type": "line",
21+
"source": "local",
22+
"source-layer": "roads",
23+
"paint": {
24+
"line-color": "#444",
25+
"line-width": 1
26+
}
27+
}
28+
]

0 commit comments

Comments
 (0)