Last active
November 20, 2024 04:47
-
-
Save pije76/982c1687f215e8539039ab01cab08417 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "Advanced", | |
"metadata": { | |
"mapbox:autocomposite": true, | |
"mapbox:type": "template" | |
}, | |
"sources": { | |
"mapbox": { | |
"url": "mapbox://mapbox.mapbox-streets-v7", | |
"type": "vector" | |
} | |
}, | |
"center": [ | |
0, | |
0 | |
], | |
"zoom": 3, | |
"sprite": "mapbox://sprites/mapbox/basic-v9", | |
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "#dedede" | |
}, | |
"interactive": true | |
}, | |
{ | |
"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 | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "landuse_park", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "landuse", | |
"filter": [ | |
"==", | |
"class", | |
"park" | |
], | |
"paint": { | |
"fill-color": "#d2edae" | |
}, | |
"interactive": true | |
}, | |
{ | |
"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 | |
] | |
] | |
} | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"source": "mapbox", | |
"source-layer": "water", | |
"paint": { | |
"fill-color": "#a0cfdf" | |
}, | |
"interactive": true | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"track", | |
"pedestrian", | |
"path", | |
"link" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"type": "line", | |
"source": "mapbox", | |
"id": "bridge_minor", | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"source-layer": "road" | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
], | |
[ | |
"==", | |
"structure", | |
"bridge" | |
] | |
] | |
], | |
"type": "line", | |
"source": "mapbox", | |
"id": "bridge_major", | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"source-layer": "road" | |
}, | |
{ | |
"interactive": true, | |
"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 | |
] | |
] | |
} | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"primary", | |
"secondary", | |
"tertiary", | |
"trunk" | |
] | |
], | |
"type": "symbol", | |
"source": "mapbox", | |
"id": "road_major_label", | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 2 | |
}, | |
"source-layer": "road_label" | |
}, | |
{ | |
"interactive": true, | |
"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 | |
] | |
] | |
} | |
}, | |
"maxzoom": 12, | |
"filter": [ | |
"==", | |
"$type", | |
"Point" | |
], | |
"type": "symbol", | |
"source": "mapbox", | |
"id": "country_label", | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
}, | |
"source-layer": "country_label" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment