Created
November 6, 2015 16:59
-
-
Save keum/3dc864880d32cd38d034 to your computer and use it in GitHub Desktop.
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": "Satellite Streets", | |
"metadata": { | |
"mapbox:groups": { | |
"1444856567853.8965": { | |
"name": "Country labels", | |
"collapsed": true | |
}, | |
"1444856935386.6565": { | |
"name": "Place labels", | |
"collapsed": true | |
}, | |
"1444856939874.5793": { | |
"name": "State labels", | |
"collapsed": true | |
}, | |
"1444856955689.293": { | |
"name": "POI labels", | |
"collapsed": true | |
}, | |
"1444856962845.698": { | |
"name": "Road labels", | |
"collapsed": true | |
}, | |
"1444856991019.1448": { | |
"name": "Marine labels", | |
"collapsed": true | |
}, | |
"1444857009211.682": { | |
"name": "Admin boundaries", | |
"collapsed": true | |
}, | |
"1444857022617.3206": { | |
"name": "Roads", | |
"collapsed": true | |
} | |
} | |
}, | |
"sources": { | |
"mapbox": { | |
"url": "mapbox://mapbox.mapbox-streets-v6", | |
"type": "vector" | |
}, | |
"satellite": { | |
"url": "mapbox://mapbox.satellite", | |
"type": "raster", | |
"tileSize": 256 | |
}, | |
/*"points": { | |
// "data": "https://gist.githubusercontent.com/anonymous/41d3061e32f9b0289b52/raw/575790482d4540cf542dcca996d1116ee65d8ff1/cso_test_file.geojson", | |
"type": "geojson" | |
}*/ | |
"route":{ | |
"data": "https://gist.githubusercontent.com/keum/0ba20f4e4d8666f6ab1d/raw/0ce412790af935dc0c11b8ca9afddd779b59727c/kcsewerline.geojson", | |
"type": "geojson" | |
} | |
}, | |
"sprite": "mapbox://sprites/mapbox/satellite-hybrid-v8", | |
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "rgb(4,7,14)" | |
} | |
}, | |
{ | |
"id": "satellite", | |
"type": "raster", | |
"source": "satellite", | |
"source-layer": "mapbox_satellite_full", | |
"paint.temp": { | |
"raster-fade-duration": 100 | |
}, | |
"paint.contours": { | |
"raster-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
11, | |
1 | |
], | |
[ | |
12, | |
0.5 | |
] | |
] | |
} | |
} | |
}, | |
/* { | |
"id": "points", | |
"type": "circle", | |
"source": "points", | |
"interactive": true, | |
"paint": { | |
"circle-radius": 10, | |
"circle-color": "#f00", | |
"circle-opacity": 0.5 | |
} | |
},*/ | |
{ | |
"id": "route", | |
"type": "line", | |
"source": "route", | |
"layout": { | |
"line-join": "round", | |
"line-cap": "round" | |
}, | |
"paint": { | |
"line-color": "#888", | |
"line-width": 8 | |
} | |
} | |
{ | |
"id": "country_label_small", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "country_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"scalerank", | |
5 | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"text-transform": "uppercase", | |
"text-max-width": 4, | |
"text-letter-spacing": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
6, | |
0.2 | |
] | |
] | |
}, | |
"text-padding": 0, | |
"text-size": { | |
"stops": [ | |
[ | |
2, | |
8 | |
], | |
[ | |
8, | |
20 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-opacity": 0.4, | |
"text-halo-color": "black", | |
"text-halo-width": 0 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856567853.8965" | |
} | |
}, | |
{ | |
"id": "country_label_medium", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "country_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"in", | |
"scalerank", | |
2, | |
3 | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"text-transform": "uppercase", | |
"text-max-width": 4, | |
"text-letter-spacing": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
6, | |
0.2 | |
] | |
] | |
}, | |
"text-padding": 0, | |
"text-allow-overlap": true, | |
"text-size": { | |
"stops": [ | |
[ | |
2, | |
8 | |
], | |
[ | |
6, | |
20 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-opacity": 0.4, | |
"text-halo-color": "black", | |
"text-halo-width": 0 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856567853.8965" | |
} | |
}, | |
{ | |
"id": "country_label_large", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "country_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"scalerank", | |
1 | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"text-transform": "uppercase", | |
"text-max-width": 4, | |
"text-letter-spacing": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
2, | |
0.2 | |
] | |
] | |
}, | |
"text-padding": 0, | |
"text-size": { | |
"stops": [ | |
[ | |
2, | |
12 | |
], | |
[ | |
6, | |
25 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-opacity": 0.4, | |
"text-halo-color": "black", | |
"text-halo-width": 0 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856567853.8965" | |
} | |
}, | |
{ | |
"id": "motorway", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"==", | |
"class", | |
"motorway" | |
], | |
"minzoom": 5, | |
"paint": { | |
"line-color": "#fff", | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
5, | |
0 | |
], | |
[ | |
6, | |
0.5 | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
20, | |
12 | |
] | |
] | |
} | |
}, | |
"metadata": { | |
"mapbox:group": "1444857022617.3206" | |
} | |
}, | |
{ | |
"id": "motorway_bridge", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "bridge", | |
"filter": [ | |
"==", | |
"class", | |
"motorway" | |
], | |
"minzoom": 5, | |
"paint": { | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
20, | |
0.5 | |
] | |
] | |
}, | |
"line-color": "white", | |
"line-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
20, | |
12 | |
] | |
] | |
} | |
}, | |
"metadata": { | |
"mapbox:group": "1444857022617.3206" | |
} | |
}, | |
{ | |
"id": "road_main", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"==", | |
"class", | |
"main" | |
], | |
"minzoom": 8, | |
"layout": { | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "#fff", | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
8, | |
0 | |
], | |
[ | |
11, | |
0.5 | |
] | |
] | |
}, | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
20, | |
15 | |
] | |
] | |
} | |
}, | |
"metadata": { | |
"mapbox:group": "1444857022617.3206" | |
} | |
}, | |
{ | |
"id": "road_street", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "road", | |
"filter": [ | |
"in", | |
"class", | |
"street", | |
"street_limited" | |
], | |
"minzoom": 12, | |
"paint": { | |
"line-color": "#fff", | |
"line-opacity": 0.25, | |
"line-width": { | |
"base": 1.5, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
20, | |
12 | |
] | |
] | |
} | |
}, | |
"metadata": { | |
"mapbox:group": "1444857022617.3206" | |
} | |
}, | |
{ | |
"id": "province_border", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "admin", | |
"filter": [ | |
"all", | |
[ | |
">=", | |
"admin_level", | |
3 | |
], | |
[ | |
"==", | |
"maritime", | |
0 | |
] | |
], | |
"layout": { | |
"line-join": "bevel", | |
"line-cap": "round" | |
}, | |
"paint": { | |
"line-color": "#000", | |
"line-dasharray": [ | |
1, | |
0 | |
], | |
"line-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
1 | |
], | |
[ | |
12, | |
3 | |
] | |
] | |
}, | |
"line-opacity": { | |
"stops": [ | |
[ | |
1, | |
0 | |
], | |
[ | |
3.5, | |
0.25 | |
] | |
] | |
} | |
}, | |
"paint.temp": { | |
"line-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444857009211.682" | |
} | |
}, | |
{ | |
"id": "country_border", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "admin", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"admin_level", | |
2 | |
], | |
[ | |
"==", | |
"disputed", | |
0 | |
], | |
[ | |
"==", | |
"maritime", | |
0 | |
] | |
], | |
"layout": { | |
"line-join": "round", | |
"line-cap": "round" | |
}, | |
"paint": { | |
"line-color": "black", | |
"line-width": { | |
"base": 1.25, | |
"stops": [ | |
[ | |
4, | |
1 | |
], | |
[ | |
16, | |
5 | |
] | |
] | |
}, | |
"line-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
4, | |
0.7 | |
] | |
] | |
} | |
}, | |
"paint.temp": { | |
"line-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444857009211.682" | |
} | |
}, | |
{ | |
"id": "admin_level_maritime", | |
"type": "line", | |
"source": "mapbox", | |
"source-layer": "admin", | |
"filter": [ | |
"==", | |
"maritime", | |
1 | |
], | |
"minzoom": 5, | |
"layout": { | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "#79d3e3", | |
"line-opacity": 0.5, | |
"line-dasharray": [ | |
0, | |
2.5 | |
], | |
"line-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
4, | |
0.4 | |
], | |
[ | |
5, | |
1 | |
], | |
[ | |
12, | |
3 | |
] | |
] | |
} | |
}, | |
"paint.temp": { | |
"line-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444857009211.682" | |
} | |
}, | |
{ | |
"id": "marine_label_small", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "marine_label", | |
"filter": [ | |
"==", | |
"$type", | |
"Point" | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 20, | |
"text-letter-spacing": 0.2, | |
"text-line-height": 1.8, | |
"visibility": "visible", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
12 | |
], | |
[ | |
8, | |
18 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "aqua", | |
"text-opacity": 0.3 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856991019.1448" | |
} | |
}, | |
{ | |
"id": "marine_label_medium", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "marine_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"in", | |
"labelrank", | |
2, | |
3, | |
4, | |
5 | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-letter-spacing": 0.3, | |
"text-line-height": 1.5, | |
"text-max-width": 6, | |
"visibility": "visible", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
3, | |
15 | |
], | |
[ | |
8, | |
20 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "aqua", | |
"text-opacity": 0.4 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856991019.1448" | |
} | |
}, | |
{ | |
"id": "marine_label_large", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "marine_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"labelrank", | |
1 | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-letter-spacing": 0.25, | |
"text-line-height": 1.8, | |
"text-max-width": 10, | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
12 | |
], | |
[ | |
16, | |
20 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "aqua", | |
"text-opacity": 0.4 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856991019.1448" | |
} | |
}, | |
{ | |
"id": "street_label", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "road_label", | |
"filter": [ | |
"==", | |
"$type", | |
"LineString" | |
], | |
"layout": { | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"symbol-placement": "line", | |
"text-padding": 0, | |
"visibility": "visible", | |
"text-field": "{name_en}", | |
"text-letter-spacing": 0.1, | |
"text-size": { | |
"stops": [ | |
[ | |
12, | |
10 | |
], | |
[ | |
20, | |
18 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-opacity": 1, | |
"text-color": "white", | |
"text-halo-color": "black", | |
"text-halo-width": 1.25, | |
"text-halo-blur": 1 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856962845.698" | |
} | |
}, | |
{ | |
"id": "highway_shields", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "road_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"class", | |
"motorway" | |
], | |
[ | |
"<=", | |
"reflen", | |
6 | |
] | |
], | |
"layout": { | |
"text-size": { | |
"stops": [ | |
[ | |
12, | |
10 | |
], | |
[ | |
20, | |
12 | |
] | |
] | |
}, | |
"icon-image": "motorway_{reflen}", | |
"symbol-avoid-edges": false, | |
"text-transform": "uppercase", | |
"symbol-spacing": 2000, | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"symbol-placement": { | |
"base": 1, | |
"stops": [ | |
[ | |
10, | |
"point" | |
], | |
[ | |
20, | |
"line" | |
] | |
] | |
}, | |
"text-padding": 0, | |
"visibility": "visible", | |
"icon-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
12, | |
0.8 | |
], | |
[ | |
20, | |
1 | |
] | |
] | |
}, | |
"text-field": "{ref}", | |
"text-letter-spacing": 0, | |
"icon-padding": 2 | |
}, | |
"paint": { | |
"text-color": "#555", | |
"icon-halo-blur": 0, | |
"icon-halo-color": "black", | |
"icon-halo-width": 1.5, | |
"text-opacity": 1, | |
"icon-color": "rgba(255,255,255,100)", | |
"text-halo-color": "black", | |
"text-halo-width": 0, | |
"text-halo-blur": 0 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856962845.698" | |
} | |
}, | |
{ | |
"id": "poi_label_all", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "poi_label", | |
"minzoom": 16, | |
"layout": { | |
"text-field": "{name}", | |
"text-padding": 30, | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 6, | |
"text-anchor": "center", | |
"visibility": "visible", | |
"text-size": { | |
"stops": [ | |
[ | |
13, | |
12 | |
], | |
[ | |
16, | |
14 | |
] | |
] | |
}, | |
"icon-size": 3.5 | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-halo-color": "white", | |
"text-halo-width": 1.5, | |
"icon-color": "#fff", | |
"text-opacity": 0.9 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856955689.293" | |
} | |
}, | |
{ | |
"id": "poi_label_large", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "poi_label", | |
"filter": [ | |
"<=", | |
"scalerank", | |
2 | |
], | |
"minzoom": 10, | |
"layout": { | |
"text-field": "{name}", | |
"text-padding": 30, | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 6, | |
"text-anchor": "top", | |
"text-letter-spacing": 0.05, | |
"text-size": { | |
"stops": [ | |
[ | |
13, | |
12 | |
], | |
[ | |
16, | |
18 | |
] | |
] | |
}, | |
"icon-size": 3.5 | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-halo-color": "white", | |
"text-halo-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
13, | |
1.25 | |
], | |
[ | |
20, | |
2.5 | |
] | |
] | |
}, | |
"icon-color": "#fff", | |
"text-opacity": 1 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856955689.293" | |
} | |
}, | |
{ | |
"id": "place_label_neighbourhood_hamlet", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"in", | |
"type", | |
"neighbourhood", | |
"suburb", | |
"hamlet" | |
] | |
], | |
"maxzoom": 14, | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Semibold Italic", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 6.5, | |
"text-letter-spacing": 0.1, | |
"text-padding": 50, | |
"text-transform": "none", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
12, | |
12.5 | |
], | |
[ | |
20, | |
35 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "white", | |
"text-halo-color": "black", | |
"text-halo-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
10, | |
1.25 | |
], | |
[ | |
20, | |
2 | |
] | |
] | |
}, | |
"text-halo-blur": 0.25, | |
"text-opacity": 0.9 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856935386.6565" | |
} | |
}, | |
{ | |
"id": "place_label_town", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"type", | |
"town" | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Regular", | |
"Arial Unicode MS Bold" | |
], | |
"visibility": "visible", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
4, | |
10 | |
], | |
[ | |
18, | |
19 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "white", | |
"text-halo-color": "rgba(0,0,0,0.75)", | |
"text-halo-width": 1.25, | |
"text-opacity": 0.9 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856935386.6565" | |
} | |
}, | |
{ | |
"id": "place_label_city_small", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"type", | |
"city" | |
], | |
[ | |
"!in", | |
"scalerank", | |
0, | |
1, | |
2, | |
3, | |
4 | |
] | |
] | |
], | |
"layout": { | |
"text-field": "{name_en}", | |
"text-font": [ | |
"Open Sans Regular", | |
"Arial Unicode MS Bold" | |
], | |
"text-max-width": 18, | |
"text-padding": 10, | |
"text-letter-spacing": 0.05, | |
"visibility": "visible", | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
6, | |
10 | |
], | |
[ | |
18, | |
30 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "white", | |
"text-halo-color": "rgba(0,0,0,0.75)", | |
"text-halo-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
6, | |
1 | |
], | |
[ | |
18, | |
2.5 | |
] | |
] | |
}, | |
"text-opacity": 0.9 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856935386.6565" | |
} | |
}, | |
{ | |
"id": "place_label_city_medium", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"type", | |
"city" | |
], | |
[ | |
"in", | |
"scalerank", | |
3, | |
2, | |
4 | |
] | |
] | |
], | |
"layout": { | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
6, | |
12 | |
], | |
[ | |
18, | |
36 | |
] | |
] | |
}, | |
"icon-image": "dot.sdf", | |
"text-font": [ | |
"Open Sans Regular", | |
"Arial Unicode MS Bold" | |
], | |
"text-padding": 1, | |
"visibility": "visible", | |
"icon-size": 0.4, | |
"text-anchor": "center", | |
"text-field": "{name_en}", | |
"text-letter-spacing": 0.05, | |
"text-max-width": 5 | |
}, | |
"paint": { | |
"text-color": "white", | |
"icon-halo-color": "black", | |
"icon-halo-width": 0.75, | |
"text-opacity": 0.9, | |
"text-translate": [ | |
0, | |
3.5 | |
], | |
"icon-color": "#fff", | |
"text-halo-color": "rgba(0,0,0,0.75)", | |
"text-halo-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
6, | |
1.5 | |
], | |
[ | |
18, | |
3 | |
] | |
] | |
} | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856935386.6565" | |
} | |
}, | |
{ | |
"id": "place_label_city_big", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "place_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"type", | |
"city" | |
], | |
[ | |
"in", | |
"scalerank", | |
0, | |
1 | |
] | |
] | |
], | |
"layout": { | |
"text-line-height": 1.2, | |
"text-size": { | |
"base": 1, | |
"stops": [ | |
[ | |
4, | |
13 | |
], | |
[ | |
18, | |
40 | |
] | |
] | |
}, | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"symbol-placement": "point", | |
"text-padding": 5, | |
"icon-size": 0.5, | |
"text-anchor": "center", | |
"text-field": "{name_en}", | |
"text-letter-spacing": 0.05, | |
"text-max-width": 5 | |
}, | |
"paint": { | |
"text-color": "white", | |
"icon-halo-color": "red", | |
"icon-halo-width": 0, | |
"text-opacity": 0.9, | |
"text-translate": [ | |
0, | |
0 | |
], | |
"icon-color": "red", | |
"text-halo-color": "rgba(0,0,0,0.75)", | |
"text-halo-width": { | |
"base": 1, | |
"stops": [ | |
[ | |
6, | |
1.5 | |
], | |
[ | |
20, | |
2.5 | |
] | |
] | |
}, | |
"icon-opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
5.9, | |
1 | |
], | |
[ | |
6, | |
0 | |
] | |
] | |
} | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856935386.6565" | |
} | |
}, | |
{ | |
"id": "state_label", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "state_label", | |
"filter": [ | |
"==", | |
"$type", | |
"Point" | |
], | |
"minzoom": 3, | |
"layout": { | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
8 | |
], | |
[ | |
9, | |
28 | |
] | |
] | |
}, | |
"text-transform": "uppercase", | |
"text-font": [ | |
"Open Sans Bold", | |
"Arial Unicode MS Bold" | |
], | |
"visibility": "visible", | |
"text-field": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"{abbr}" | |
], | |
[ | |
4, | |
"{name_en}" | |
] | |
] | |
}, | |
"text-letter-spacing": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
6, | |
0.2 | |
] | |
] | |
}, | |
"text-max-width": 6 | |
}, | |
"paint": { | |
"text-color": "black", | |
"text-opacity": 0.6 | |
}, | |
"paint.temp": { | |
"text-opacity": 0 | |
}, | |
"metadata": { | |
"mapbox:group": "1444856939874.5793" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment