Built with blockbuilder.org
Last active
March 25, 2019 20:01
-
-
Save keum/f1dd40fdc98e62177ed55fe54e849751 to your computer and use it in GitHub Desktop.
fresh block
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
license: mit |
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": "Klokantech Basic", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "template", | |
"maputnik:renderer": "mbgljs", | |
"openmaptiles:version": "3.x", | |
"openmaptiles:mapbox:owner": "openmaptiles", | |
"openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t" | |
}, | |
"sources": { | |
"openmaptiles": { | |
"type": "vector", | |
"url": "https://free.tilehosting.com/data/v3.json?key= 4addJTicmjagspJllQTf " | |
} | |
}, | |
"sprite": "https://openmaptiles.github.io/klokantech-basic-gl-style/sprite", | |
"glyphs": "https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf?key= 4addJTicmjagspJllQTf ", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "hsl(47, 26%, 88%)" | |
} | |
}, | |
{ | |
"id": "landuse-residential", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landuse", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"class", | |
"residential" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(47, 13%, 86%)", | |
"fill-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "landcover_grass", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"==", | |
"class", | |
"grass" | |
], | |
"paint": { | |
"fill-color": "hsl(82, 46%, 72%)", | |
"fill-opacity": 0.45 | |
} | |
}, | |
{ | |
"id": "landcover_wood", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"==", | |
"class", | |
"wood" | |
], | |
"paint": { | |
"fill-color": "hsl(82, 46%, 72%)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
8, | |
0.6 | |
], | |
[ | |
22, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "water", | |
"filter": [ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
"paint": { | |
"fill-color": "hsl(205, 56%, 73%)" | |
} | |
}, | |
{ | |
"id": "landcover-ice-shelf", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"==", | |
"subclass", | |
"ice_shelf" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(47, 26%, 88%)", | |
"fill-opacity": 0.8 | |
} | |
}, | |
{ | |
"id": "landcover-glacier", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"==", | |
"subclass", | |
"glacier" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(47, 22%, 94%)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
1 | |
], | |
[ | |
8, | |
0.5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "landcover_sand", | |
"type": "fill", | |
"metadata": {}, | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"sand" | |
] | |
], | |
"paint": { | |
"fill-antialias": false, | |
"fill-color": "rgba(232, 214, 38, 1)", | |
"fill-opacity": 0.3 | |
} | |
}, | |
{ | |
"id": "landuse", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landuse", | |
"filter": [ | |
"==", | |
"class", | |
"agriculture" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "#eae0d0" | |
} | |
}, | |
{ | |
"id": "landuse_overlay_national_park", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"filter": [ | |
"==", | |
"class", | |
"national_park" | |
], | |
"paint": { | |
"fill-color": "#E1EBB0", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
5, | |
0 | |
], | |
[ | |
9, | |
0.75 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "waterway-tunnel", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "waterway", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
] | |
], | |
"paint": { | |
"line-color": "hsl(205, 56%, 73%)", | |
"line-dasharray": [ | |
3, | |
3 | |
], | |
"line-gap-width": { | |
"stops": [ | |
[ | |
12, | |
0 | |
], | |
[ | |
20, | |
6 | |
] | |
] | |
}, | |
"line-opacity": 1, | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
8, | |
1 | |
], | |
[ | |
20, | |
2 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "waterway", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "waterway", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"!in", | |
"brunnel", | |
"tunnel", | |
"bridge" | |
] | |
], | |
"paint": { | |
"line-color": "hsl(205, 56%, 73%)", | |
"line-opacity": 1, | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
8, | |
1 | |
], | |
[ | |
20, | |
8 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "tunnel_railway_transit", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 0, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"transit" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "hsl(34, 12%, 66%)", | |
"line-dasharray": [ | |
3, | |
3 | |
], | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
11, | |
0 | |
], | |
[ | |
16, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "building", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "building", | |
"paint": { | |
"fill-antialias": true, | |
"fill-color": "rgba(222, 211, 190, 1)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
13, | |
0 | |
], | |
[ | |
15, | |
1 | |
] | |
] | |
}, | |
"fill-outline-color": { | |
"stops": [ | |
[ | |
15, | |
"rgba(212, 177, 146, 0)" | |
], | |
[ | |
16, | |
"rgba(212, 177, 146, 0.5)" | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "housenumber", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "housenumber", | |
"minzoom": 17, | |
"filter": [ | |
"==", | |
"$type", | |
"Point" | |
], | |
"layout": { | |
"text-field": "{housenumber}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-size": 10 | |
}, | |
"paint": { | |
"text-color": "rgba(212, 177, 146, 1)" | |
} | |
}, | |
{ | |
"id": "road_area_pier", | |
"type": "fill", | |
"metadata": {}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"class", | |
"pier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(47, 26%, 88%)", | |
"fill-antialias": true | |
} | |
}, | |
{ | |
"id": "road_pier", | |
"type": "line", | |
"metadata": {}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"pier" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(47, 26%, 88%)", | |
"line-width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
15, | |
1 | |
], | |
[ | |
17, | |
4 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_bridge_area", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"in", | |
"brunnel", | |
"bridge" | |
] | |
], | |
"layout": {}, | |
"paint": { | |
"fill-color": "hsl(47, 26%, 88%)", | |
"fill-opacity": 0.5 | |
} | |
}, | |
{ | |
"id": "road_path", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"path", | |
"track" | |
] | |
], | |
"layout": { | |
"line-cap": "square", | |
"line-join": "bevel" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 97%)", | |
"line-dasharray": [ | |
1, | |
1 | |
], | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_minor", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"minor", | |
"service" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 97%)", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "tunnel_minor", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"minor_road" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#efefef", | |
"line-dasharray": [ | |
0.36, | |
0.18 | |
], | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "tunnel_major", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-dasharray": [ | |
0.28, | |
0.14 | |
], | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "aeroway-area", | |
"type": "fill", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 4, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"in", | |
"class", | |
"runway", | |
"taxiway" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(255, 255, 255, 1)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
13, | |
0 | |
], | |
[ | |
14, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "aeroway-taxiway", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"taxiway" | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(255, 255, 255, 1)", | |
"line-opacity": 1, | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
17, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "aeroway-runway", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 4, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"runway" | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(255, 255, 255, 1)", | |
"line-opacity": 1, | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
11, | |
4 | |
], | |
[ | |
17, | |
50 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_trunk_primary", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"trunk", | |
"primary" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_secondary_tertiary", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"secondary", | |
"tertiary" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
20 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_major_motorway", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 100%)", | |
"line-offset": 0, | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
8, | |
1 | |
], | |
[ | |
16, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_oneway_opposite", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 15, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"oneway", | |
-1 | |
] | |
], | |
"layout": { | |
"icon-image": "oneway", | |
"icon-padding": 2, | |
"icon-rotate": 180, | |
"icon-rotation-alignment": "map", | |
"icon-size": { | |
"stops": [ | |
[ | |
15, | |
0.5 | |
], | |
[ | |
19, | |
1 | |
] | |
] | |
}, | |
"symbol-placement": "line", | |
"symbol-spacing": 200 | |
}, | |
"paint": { | |
"icon-opacity": 0.5 | |
} | |
}, | |
{ | |
"id": "railway-transit", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"class", | |
"transit" | |
], | |
[ | |
"!=", | |
"brunnel", | |
"tunnel" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(34, 12%, 66%)", | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
11, | |
0 | |
], | |
[ | |
16, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "railway", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"==", | |
"class", | |
"rail" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(34, 12%, 66%)", | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
11, | |
0 | |
], | |
[ | |
16, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "waterway-bridge-case", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "waterway", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#bbbbbb", | |
"line-gap-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.6, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "waterway-bridge", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "waterway", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(205, 56%, 73%)", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_minor case", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"==", | |
"class", | |
"minor_road" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#dedede", | |
"line-gap-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.6, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_major case", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#dedede", | |
"line-gap-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.6, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_minor", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"==", | |
"class", | |
"minor_road" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_major", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "admin_sub", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "boundary", | |
"filter": [ | |
"in", | |
"admin_level", | |
4, | |
6, | |
8 | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsla(0, 0%, 60%, 0.5)", | |
"line-dasharray": [ | |
2, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "admin_country", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "boundary", | |
"filter": [ | |
"all", | |
[ | |
"<=", | |
"admin_level", | |
2 | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 60%)", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
3, | |
0.5 | |
], | |
[ | |
22, | |
15 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "poi_label", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "poi", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"rank", | |
1 | |
] | |
], | |
"layout": { | |
"icon-size": 1, | |
"text-anchor": "top", | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-max-width": 8, | |
"text-offset": [ | |
0, | |
0.5 | |
], | |
"text-size": 11, | |
"visibility": "visible" | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-blur": 1, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1 | |
} | |
}, | |
{ | |
"id": "airport-label", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "aerodrome_label", | |
"minzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"has", | |
"iata" | |
] | |
], | |
"layout": { | |
"icon-size": 1, | |
"text-anchor": "top", | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-max-width": 8, | |
"text-offset": [ | |
0, | |
0.5 | |
], | |
"text-size": 11, | |
"visibility": "visible" | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-blur": 1, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1 | |
} | |
}, | |
{ | |
"id": "road_major_label", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "transportation_name", | |
"filter": [ | |
"==", | |
"$type", | |
"LineString" | |
], | |
"layout": { | |
"symbol-placement": "line", | |
"text-field": "{name:latin} {name:nonlatin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-letter-spacing": 0.1, | |
"text-rotation-alignment": "map", | |
"text-size": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
10, | |
8 | |
], | |
[ | |
20, | |
14 | |
] | |
] | |
}, | |
"text-transform": "uppercase" | |
}, | |
"paint": { | |
"text-color": "#000", | |
"text-halo-color": "hsl(0, 0%, 100%)", | |
"text-halo-width": 2 | |
} | |
}, | |
{ | |
"id": "place_label_other", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"minzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"!in", | |
"class", | |
"city", | |
"state", | |
"country", | |
"continent" | |
] | |
], | |
"layout": { | |
"text-anchor": "center", | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-max-width": 6, | |
"text-size": { | |
"stops": [ | |
[ | |
6, | |
10 | |
], | |
[ | |
12, | |
14 | |
] | |
] | |
}, | |
"visibility": "visible" | |
}, | |
"paint": { | |
"text-color": "hsl(0, 0%, 25%)", | |
"text-halo-blur": 0, | |
"text-halo-color": "hsl(0, 0%, 100%)", | |
"text-halo-width": 2 | |
} | |
}, | |
{ | |
"id": "place_label_city", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"city" | |
] | |
], | |
"layout": { | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-max-width": 10, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
12 | |
], | |
[ | |
8, | |
16 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "hsl(0, 0%, 0%)", | |
"text-halo-blur": 0, | |
"text-halo-color": "hsla(0, 0%, 100%, 0.75)", | |
"text-halo-width": 2 | |
} | |
}, | |
{ | |
"id": "country_label-other", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"country" | |
], | |
[ | |
"!has", | |
"iso_a2" | |
] | |
], | |
"layout": { | |
"text-field": "{name:latin}", | |
"text-font": [ | |
"Noto Sans Regular" | |
], | |
"text-max-width": 10, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
12 | |
], | |
[ | |
8, | |
22 | |
] | |
] | |
}, | |
"visibility": "visible" | |
}, | |
"paint": { | |
"text-color": "hsl(0, 0%, 13%)", | |
"text-halo-blur": 0, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 2 | |
} | |
}, | |
{ | |
"id": "country_label", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"country" | |
], | |
[ | |
"has", | |
"iso_a2" | |
] | |
], | |
"layout": { | |
"text-field": "{name:latin}", | |
"text-font": [ | |
"Noto Sans Bold" | |
], | |
"text-max-width": 10, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
12 | |
], | |
[ | |
8, | |
22 | |
] | |
] | |
}, | |
"visibility": "visible" | |
}, | |
"paint": { | |
"text-color": "hsl(0, 0%, 13%)", | |
"text-halo-blur": 0, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 2 | |
} | |
} | |
], | |
"id": "klokantech-basic" | |
} |
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": "Basic", | |
"metadata": { | |
"mapbox:autocomposite": true, | |
"mapbox:type": "template" | |
}, | |
"sources": { | |
"mapbox": { | |
"url": "mapbox://mapbox.mapbox-streets-v7", | |
"type": "vector" | |
} | |
}, | |
"sprite": "mapbox://sprites/mapbox/basic-v9", | |
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "#dedede" | |
} | |
}, | |
{ | |
"id": "landuse_overlay_national_park", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "landuse_overlay", | |
"filter": [ | |
"==", | |
"class", | |
"national_park" | |
], | |
"paint": { | |
"fill-color": "#d2edae", | |
"fill-opacity": 0.75 | |
} | |
}, | |
{ | |
"id": "landuse_park", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "landuse", | |
"filter": [ | |
"==", | |
"class", | |
"park" | |
], | |
"paint": { | |
"fill-color": "#d2edae" | |
} | |
}, | |
{ | |
"id": "waterway", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "waterway", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"river", | |
"canal" | |
] | |
], | |
"paint": { | |
"line-color": "#a0cfdf", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
8, | |
0.5 | |
], | |
[ | |
20, | |
15 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "water", | |
"paint": { | |
"fill-color": "#a0cfdf" | |
} | |
}, | |
{ | |
"id": "building", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "building", | |
"paint": { | |
"fill-color": "#d6d6d6" | |
} | |
}, | |
{ | |
"id": "tunnel_minor", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"track", | |
"pedestrian", | |
"path", | |
"link" | |
], | |
[ | |
"==", | |
"structure", | |
"tunnel" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
0.36, | |
0.18 | |
] | |
} | |
}, | |
{ | |
"id": "tunnel_major", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
], | |
[ | |
"==", | |
"structure", | |
"tunnel" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
0.28, | |
0.14 | |
] | |
} | |
}, | |
{ | |
"id": "road_minor", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"track", | |
"pedestrian", | |
"path", | |
"link" | |
], | |
[ | |
"in", | |
"structure", | |
"none", | |
"ford" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "road_major", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
], | |
[ | |
"in", | |
"structure", | |
"none", | |
"ford" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_minor case", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"track", | |
"pedestrian", | |
"path", | |
"link" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#dedede", | |
"line-width": { | |
"base": 1.6, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
}, | |
"line-gap-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_major case", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#dedede", | |
"line-width": { | |
"base": 1.6, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
}, | |
"line-gap-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_minor", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"track", | |
"pedestrian", | |
"path", | |
"link" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "bridge_major", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "admin_country", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "admin", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"<=", | |
"admin_level", | |
2 | |
], | |
[ | |
"==", | |
"maritime", | |
0 | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#8b8a8a", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
3, | |
0.5 | |
], | |
[ | |
22, | |
15 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "poi_label", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "poi_label", | |
"minzoom": 5, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"scalerank", | |
1 | |
], | |
[ | |
"==", | |
"localrank", | |
1 | |
] | |
] | |
], | |
"layout": { | |
"icon-image": "{maki}-11", | |
"text-offset": [ | |
0, | |
0.5 | |
], | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 8, | |
"text-anchor": "top", | |
"text-size": 11, | |
"icon-size": 1 | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-width": 1, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "road_major_label", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "road_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"symbol-placement": "line", | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"text-transform": "uppercase", | |
"text-letter-spacing": 0.1, | |
"text-size": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
10, | |
8 | |
], | |
[ | |
20, | |
14 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 2 | |
} | |
}, | |
{ | |
"id": "place_label_other", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"minzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"in", | |
"type", | |
"town", | |
"village", | |
"hamlet", | |
"suburb", | |
"neighbourhood", | |
"island" | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 6, | |
"text-size": { | |
"stops": [ | |
[ | |
6, | |
12 | |
], | |
[ | |
12, | |
16 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "place_label_city", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"maxzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"type", | |
"city" | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 10, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
12 | |
], | |
[ | |
8, | |
16 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "country_label", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "country_label", | |
"maxzoom": 12, | |
"filter": [ | |
"==", | |
"$type", | |
"Point" | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Regular", | |
"Arial Unicode MS Regular" | |
], | |
"text-max-width": 10, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
14 | |
], | |
[ | |
8, | |
22 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
} | |
], | |
"id": "gutgq1n5k" | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Klokantech Basic Preview</title> | |
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css" /> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.js"></script> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
</head> | |
<body> | |
<div id='map'></div> | |
<script> | |
var map = new mapboxgl.Map({ | |
container: 'map', | |
style: 'basic.json', | |
attributionControl: true, | |
hash: true | |
}); | |
map.addControl(new mapboxgl.NavigationControl()); | |
</script> | |
</body> | |
</html> |
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": "Positron", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "template", | |
"mapbox:groups": { | |
"b6371a3f2f5a9932464fa3867530a2e5": { | |
"name": "Transportation", | |
"collapsed": false | |
}, | |
"a14c9607bc7954ba1df7205bf660433f": { | |
"name": "Boundaries" | |
}, | |
"101da9f13b64a08fa4b6ac1168e89e5f": { | |
"name": "Places", | |
"collapsed": false | |
} | |
}, | |
"openmaptiles:version": "3.x", | |
"openmaptiles:mapbox:owner": "openmaptiles", | |
"openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t" | |
}, | |
"sources": { | |
"openmaptiles": { | |
"type": "vector", | |
"url": "https://free.tilehosting.com/data/v3.json?key={key}" | |
} | |
}, | |
"sprite": "https://openmaptiles.github.io/positron-gl-style/sprite", | |
"glyphs": "https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf?key=undefined", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "rgb(242,243,240)" | |
} | |
}, | |
{ | |
"id": "park", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "park", | |
"filter": [ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgb(230, 233, 229)" | |
} | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "water", | |
"filter": [ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgb(194, 200, 202)", | |
"fill-antialias": true | |
} | |
}, | |
{ | |
"id": "landcover_ice_shelf", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"maxzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"subclass", | |
"ice_shelf" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(0, 0%, 98%)", | |
"fill-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "landcover_glacier", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"maxzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"subclass", | |
"glacier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "hsl(0, 0%, 98%)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
1 | |
], | |
[ | |
8, | |
0.5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "landuse_residential", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landuse", | |
"maxzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"class", | |
"residential" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgb(234, 234, 230)", | |
"fill-opacity": { | |
"base": 0.6, | |
"stops": [ | |
[ | |
8, | |
0.8 | |
], | |
[ | |
9, | |
0.6 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "landcover_wood", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "landcover", | |
"minzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"class", | |
"wood" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgb(220,224,220)", | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
8, | |
0 | |
], | |
[ | |
12, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "waterway", | |
"type": "line", | |
"source": "openmaptiles", | |
"source-layer": "waterway", | |
"filter": [ | |
"==", | |
"$type", | |
"LineString" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(195, 17%, 78%)" | |
} | |
}, | |
{ | |
"id": "water_name", | |
"type": "symbol", | |
"source": "openmaptiles", | |
"source-layer": "water_name", | |
"filter": [ | |
"==", | |
"$type", | |
"LineString" | |
], | |
"layout": { | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"symbol-placement": "line", | |
"text-rotation-alignment": "map", | |
"symbol-spacing": 500, | |
"text-font": [ | |
"Metropolis Medium Italic", | |
"Noto Sans Italic" | |
], | |
"text-size": 12 | |
}, | |
"paint": { | |
"text-color": "rgb(157,169,177)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "building", | |
"type": "fill", | |
"source": "openmaptiles", | |
"source-layer": "building", | |
"minzoom": 12, | |
"paint": { | |
"fill-color": "rgb(234, 234, 229)", | |
"fill-outline-color": "rgb(219, 219, 218)", | |
"fill-antialias": true | |
} | |
}, | |
{ | |
"id": "tunnel_motorway_casing", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(213, 213, 213)", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
5.8, | |
0 | |
], | |
[ | |
6, | |
3 | |
], | |
[ | |
20, | |
40 | |
] | |
] | |
}, | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "tunnel_motorway_inner", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"brunnel", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(234,234,234)", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
4, | |
2 | |
], | |
[ | |
6, | |
1.3 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "aeroway-taxiway", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"taxiway" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 88%)", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
13, | |
1.8 | |
], | |
[ | |
20, | |
20 | |
] | |
] | |
}, | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "aeroway-runway-casing", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"runway" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 88%)", | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
11, | |
6 | |
], | |
[ | |
17, | |
55 | |
] | |
] | |
}, | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "aeroway-area", | |
"type": "fill", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 4, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"in", | |
"class", | |
"runway", | |
"taxiway" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
13, | |
0 | |
], | |
[ | |
14, | |
1 | |
] | |
] | |
}, | |
"fill-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "aeroway-runway", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "1444849345966.4436" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "aeroway", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"runway" | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(255, 255, 255, 1)", | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
11, | |
4 | |
], | |
[ | |
17, | |
50 | |
] | |
] | |
}, | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "road_area_pier", | |
"type": "fill", | |
"metadata": {}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Polygon" | |
], | |
[ | |
"==", | |
"class", | |
"pier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgb(242,243,240)", | |
"fill-antialias": true | |
} | |
}, | |
{ | |
"id": "road_pier", | |
"type": "line", | |
"metadata": {}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"pier" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "rgb(242,243,240)", | |
"line-width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
15, | |
1 | |
], | |
[ | |
17, | |
4 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "highway_path", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"class", | |
"path" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(234, 234, 234)", | |
"line-width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
13, | |
1 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
}, | |
"line-opacity": 0.9 | |
} | |
}, | |
{ | |
"id": "highway_minor", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"minor", | |
"service", | |
"track" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsl(0, 0%, 88%)", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
13, | |
1.8 | |
], | |
[ | |
20, | |
20 | |
] | |
] | |
}, | |
"line-opacity": 0.9 | |
} | |
}, | |
{ | |
"id": "highway_major_casing", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(213, 213, 213)", | |
"line-dasharray": [ | |
12, | |
0 | |
], | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
10, | |
3 | |
], | |
[ | |
20, | |
23 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "highway_major_inner", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
10, | |
2 | |
], | |
[ | |
20, | |
20 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "highway_major_subtle", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"maxzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsla(0, 0%, 85%, 0.69)", | |
"line-width": 2 | |
} | |
}, | |
{ | |
"id": "highway_motorway_casing", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"!in", | |
"brunnel", | |
"bridge", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(213, 213, 213)", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
5.8, | |
0 | |
], | |
[ | |
6, | |
3 | |
], | |
[ | |
20, | |
40 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
2, | |
0 | |
], | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "highway_motorway_inner", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"!in", | |
"brunnel", | |
"bridge", | |
"tunnel" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": { | |
"base": 1, | |
"stops": [ | |
[ | |
5.8, | |
"hsla(0, 0%, 85%, 0.53)" | |
], | |
[ | |
6, | |
"#fff" | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
4, | |
2 | |
], | |
[ | |
6, | |
1.3 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "highway_motorway_subtle", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"maxzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "hsla(0, 0%, 85%, 0.53)", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
4, | |
2 | |
], | |
[ | |
6, | |
1.3 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "railway_transit", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"class", | |
"transit" | |
], | |
[ | |
"!in", | |
"brunnel", | |
"tunnel" | |
] | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#dddddd", | |
"line-width": 3 | |
} | |
}, | |
{ | |
"id": "railway_transit_dashline", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"class", | |
"transit" | |
], | |
[ | |
"!in", | |
"brunnel", | |
"tunnel" | |
] | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fafafa", | |
"line-width": 2, | |
"line-dasharray": [ | |
3, | |
3 | |
] | |
} | |
}, | |
{ | |
"id": "railway_service", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"class", | |
"rail" | |
], | |
[ | |
"has", | |
"service" | |
] | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#dddddd", | |
"line-width": 3 | |
} | |
}, | |
{ | |
"id": "railway_service_dashline", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"class", | |
"rail" | |
], | |
[ | |
"has", | |
"service" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fafafa", | |
"line-width": 2, | |
"line-dasharray": [ | |
3, | |
3 | |
] | |
} | |
}, | |
{ | |
"id": "railway", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"!has", | |
"service" | |
], | |
[ | |
"==", | |
"class", | |
"rail" | |
] | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#dddddd", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
16, | |
3 | |
], | |
[ | |
20, | |
7 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "railway_dashline", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"!has", | |
"service" | |
], | |
[ | |
"==", | |
"class", | |
"rail" | |
] | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#fafafa", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
16, | |
2 | |
], | |
[ | |
20, | |
6 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
3, | |
3 | |
] | |
} | |
}, | |
{ | |
"id": "highway_motorway_bridge_casing", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(213, 213, 213)", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
5.8, | |
0 | |
], | |
[ | |
6, | |
5 | |
], | |
[ | |
20, | |
45 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
2, | |
0 | |
], | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "highway_motorway_bridge_inner", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation", | |
"minzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"brunnel", | |
"bridge" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
] | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": { | |
"base": 1, | |
"stops": [ | |
[ | |
5.8, | |
"hsla(0, 0%, 85%, 0.53)" | |
], | |
[ | |
6, | |
"#fff" | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
4, | |
2 | |
], | |
[ | |
6, | |
1.3 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "highway_name_other", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation_name", | |
"filter": [ | |
"all", | |
[ | |
"!=", | |
"class", | |
"motorway" | |
], | |
[ | |
"==", | |
"$type", | |
"LineString" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"text-max-angle": 30, | |
"text-transform": "uppercase", | |
"symbol-spacing": 350, | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"symbol-placement": "line", | |
"visibility": "visible", | |
"text-rotation-alignment": "map", | |
"text-pitch-alignment": "viewport", | |
"text-field": "{name:latin} {name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "#bbb", | |
"text-halo-color": "#fff", | |
"text-translate": [ | |
0, | |
0 | |
], | |
"text-halo-width": 2, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "highway_name_motorway", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "b6371a3f2f5a9932464fa3867530a2e5" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "transportation_name", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"==", | |
"class", | |
"motorway" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"symbol-spacing": 350, | |
"text-font": [ | |
"Metropolis Light", | |
"Noto Sans Regular" | |
], | |
"symbol-placement": "line", | |
"visibility": "visible", | |
"text-rotation-alignment": "viewport", | |
"text-pitch-alignment": "viewport", | |
"text-field": "{ref}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "hsl(0, 0%, 100%)", | |
"text-translate": [ | |
0, | |
2 | |
], | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "boundary_state", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "a14c9607bc7954ba1df7205bf660433f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "boundary", | |
"filter": [ | |
"==", | |
"admin_level", | |
4 | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round", | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgb(230, 204, 207)", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
3, | |
1 | |
], | |
[ | |
22, | |
15 | |
] | |
] | |
}, | |
"line-blur": 0.4, | |
"line-dasharray": [ | |
2, | |
2 | |
], | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "boundary_country", | |
"type": "line", | |
"metadata": { | |
"mapbox:group": "a14c9607bc7954ba1df7205bf660433f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "boundary", | |
"filter": [ | |
"==", | |
"admin_level", | |
2 | |
], | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "rgb(230, 204, 207)", | |
"line-width": { | |
"base": 1.1, | |
"stops": [ | |
[ | |
3, | |
1 | |
], | |
[ | |
22, | |
20 | |
] | |
] | |
}, | |
"line-blur": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0.4 | |
], | |
[ | |
22, | |
4 | |
] | |
] | |
}, | |
"line-opacity": 1 | |
} | |
}, | |
{ | |
"id": "place_other", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"class", | |
"continent", | |
"hamlet", | |
"neighbourhood", | |
"isolated_dwelling" | |
], | |
[ | |
"==", | |
"$type", | |
"Point" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "center", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0 | |
], | |
"text-anchor": "center", | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "place_suburb", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 15, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"suburb" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "center", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0 | |
], | |
"text-anchor": "center", | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "place_village", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"village" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "left", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0.2 | |
], | |
"icon-size": 0.4, | |
"text-anchor": "left", | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1, | |
"icon-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "place_town", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 15, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"town" | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"icon-image": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"circle-11" | |
], | |
[ | |
8, | |
"" | |
] | |
] | |
}, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "left", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0.2 | |
], | |
"icon-size": 0.4, | |
"text-anchor": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"left" | |
], | |
[ | |
8, | |
"center" | |
] | |
] | |
}, | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1, | |
"icon-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "place_city", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"!=", | |
"capital", | |
2 | |
], | |
[ | |
"==", | |
"class", | |
"city" | |
], | |
[ | |
">", | |
"rank", | |
3 | |
] | |
] | |
], | |
"layout": { | |
"text-size": 10, | |
"icon-image": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"circle-11" | |
], | |
[ | |
8, | |
"" | |
] | |
] | |
}, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "left", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0.2 | |
], | |
"icon-size": 0.4, | |
"text-anchor": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"left" | |
], | |
[ | |
8, | |
"center" | |
] | |
] | |
}, | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1, | |
"icon-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "place_capital", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"capital", | |
2 | |
], | |
[ | |
"==", | |
"class", | |
"city" | |
] | |
] | |
], | |
"layout": { | |
"text-size": 14, | |
"icon-image": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"star-11" | |
], | |
[ | |
8, | |
"" | |
] | |
] | |
}, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "left", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0.2 | |
], | |
"icon-size": 1, | |
"text-anchor": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"left" | |
], | |
[ | |
8, | |
"center" | |
] | |
] | |
}, | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1, | |
"icon-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "place_city_large", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"!=", | |
"capital", | |
2 | |
], | |
[ | |
"<=", | |
"rank", | |
3 | |
], | |
[ | |
"==", | |
"class", | |
"city" | |
] | |
] | |
], | |
"layout": { | |
"text-size": 14, | |
"icon-image": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"circle-11" | |
], | |
[ | |
8, | |
"" | |
] | |
] | |
}, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-justify": "left", | |
"visibility": "visible", | |
"text-offset": [ | |
0.5, | |
0.2 | |
], | |
"icon-size": 0.4, | |
"text-anchor": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"left" | |
], | |
[ | |
8, | |
"center" | |
] | |
] | |
}, | |
"text-field": "{name:latin}\n{name:nonlatin}" | |
}, | |
"paint": { | |
"text-color": "rgb(117, 129, 145)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1, | |
"icon-opacity": 0.7 | |
} | |
}, | |
{ | |
"id": "place_state", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"state" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"text-field": "{name:latin}\n{name:nonlatin}", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-transform": "uppercase", | |
"text-size": 10 | |
}, | |
"paint": { | |
"text-color": "rgb(113, 129, 144)", | |
"text-halo-color": "rgb(242,243,240)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "place_country_other", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"country" | |
], | |
[ | |
"!has", | |
"iso_a2" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"text-field": "{name:latin}", | |
"text-font": [ | |
"Metropolis Light Italic", | |
"Noto Sans Italic" | |
], | |
"text-transform": "uppercase", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
9 | |
], | |
[ | |
6, | |
11 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-halo-width": 1.4, | |
"text-halo-color": "rgba(236,236,234,0.7)", | |
"text-color": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
"rgb(157,169,177)" | |
], | |
[ | |
4, | |
"rgb(153, 153, 153)" | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "place_country_minor", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"class", | |
"country" | |
], | |
[ | |
">=", | |
"rank", | |
2 | |
], | |
[ | |
"has", | |
"iso_a2" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"text-field": "{name:latin}", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-transform": "uppercase", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
10 | |
], | |
[ | |
6, | |
12 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-halo-width": 1.4, | |
"text-halo-color": "rgba(236,236,234,0.7)", | |
"text-color": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
"rgb(157,169,177)" | |
], | |
[ | |
4, | |
"rgb(153, 153, 153)" | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "place_country_major", | |
"type": "symbol", | |
"metadata": { | |
"mapbox:group": "101da9f13b64a08fa4b6ac1168e89e5f" | |
}, | |
"source": "openmaptiles", | |
"source-layer": "place", | |
"maxzoom": 6, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"<=", | |
"rank", | |
1 | |
], | |
[ | |
"==", | |
"class", | |
"country" | |
], | |
[ | |
"has", | |
"iso_a2" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"text-field": "{name:latin}", | |
"text-font": [ | |
"Metropolis Regular", | |
"Noto Sans Regular" | |
], | |
"text-transform": "uppercase", | |
"text-size": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
0, | |
10 | |
], | |
[ | |
3, | |
12 | |
], | |
[ | |
4, | |
14 | |
] | |
] | |
}, | |
"text-anchor": "center" | |
}, | |
"paint": { | |
"text-halo-width": 1.4, | |
"text-halo-color": "rgba(236,236,234,0.7)", | |
"text-color": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
"rgb(157,169,177)" | |
], | |
[ | |
4, | |
"rgb(153, 153, 153)" | |
] | |
] | |
} | |
} | |
} | |
], | |
"id": "positron" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment