Last active
March 19, 2020 07:07
-
-
Save typebrook/f8094ad9265a06d6c3b71fd5aeaff887 to your computer and use it in GitHub Desktop.
[tile-server] klokan tileserver config for custom style #tile-host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"options": { | |
"paths": { | |
"root": "", | |
"fonts": "glyphs", | |
"sprites": "sprites", | |
"styles": "styles", | |
"mbtiles": "data" | |
}, | |
"formatEncoding": { | |
"png": 6, | |
"jpeg": 80, | |
"webp": 90 | |
} | |
}, | |
"styles": { | |
"tin-plate": { | |
"style": "tin-plate.json", | |
"tilejson": { | |
"type": "overlay", | |
"bounds": [119.5759, 21.7987, 122.5051, 25.4070] | |
} | |
} | |
}, | |
"data": { | |
"taiwan-contour": { | |
"mbtiles": "10m.mbtiles" | |
}, | |
"taiwan-latest": { | |
"mbtiles": "taiwan-latest.mbtiles" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 8, | |
"name": "TaiwanTopo-copy", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "default" | |
}, | |
"center": [ | |
121.57135246840983, | |
24.535966585010087 | |
], | |
"zoom": 13.311358124961048, | |
"bearing": 0, | |
"pitch": 60, | |
"sources": { | |
"contour-10m": { | |
"url": "mbtiles://10m.mbtiles", | |
"type": "vector" | |
} | |
}, | |
"sprite": "sprites/bright-v9", | |
"glyphs": "glyphs/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "contour", | |
"type": "fill-extrusion", | |
"source": "contour-10m", | |
"source-layer": "contour", | |
"minzoom": 9, | |
"maxzoom": 18, | |
"filter": [ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
"layout": {}, | |
"paint": { | |
"fill-extrusion-height": [ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"get", | |
"height" | |
], | |
0 | |
], | |
"fill-extrusion-color": [ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"interpolate", | |
[ | |
"linear" | |
], | |
[ | |
"get", | |
"height" | |
], | |
0, | |
"#b9ff99", | |
999, | |
"hsla(101, 41%, 36%, 0.98)", | |
1000, | |
"hsla(18, 42%, 77%, 0.98)", | |
1999, | |
"hsla(18, 40%, 35%, 0.98)", | |
2000, | |
"hsla(170, 38%, 88%, 0.98)", | |
2999, | |
"hsla(170, 38%, 32%, 0.98)", | |
3000, | |
"hsla(309, 38%, 83%, 0.98)", | |
3999, | |
"hsla(309, 38%, 32%, 0.98)" | |
], | |
"hsl(0, 0%, 0%)" | |
], | |
"fill-extrusion-base": [ | |
"interpolate", | |
[ | |
"linear" | |
], | |
[ | |
"zoom" | |
], | |
9, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
500 | |
], | |
0 | |
], | |
10, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
500 | |
], | |
0 | |
], | |
11, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
100 | |
], | |
0 | |
], | |
12, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
50 | |
], | |
0 | |
], | |
13, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
50 | |
], | |
0 | |
], | |
14, | |
[ | |
"case", | |
[ | |
"has", | |
"height" | |
], | |
[ | |
"-", | |
[ | |
"get", | |
"height" | |
], | |
10 | |
], | |
0 | |
] | |
] | |
} | |
} | |
], | |
"created": "2018-06-26T09:24:12.945Z", | |
"id": "cjivhi60t8o992st71ybow26y", | |
"modified": "2018-06-26T09:24:50.041Z", | |
"owner": "typebrook", | |
"visibility": "private", | |
"draft": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment