Created
August 8, 2018 20:24
-
-
Save ear7h/9031a5b7535c4458de8d7473326683de 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": "camo", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "template", | |
"openmaptiles:version": "3.x", | |
"maputnik:renderer": "mbgljs", | |
"inspect": true | |
}, | |
"center": [ | |
7.1434, | |
50.7338 | |
], | |
"zoom": 14.11, | |
"bearing": 0, | |
"pitch": 0, | |
"sources": { | |
"osm": { | |
"type": "vector", | |
"url": "/capabilities/osm.json" | |
} | |
}, | |
"sprite": "https://go-spatial.github.io/carto-assets/spritesets/osm_tegola_spritesheet", | |
"glyphs": "https://go-spatial.github.io/carto-assets/fonts/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"maxzoom": 24, | |
"filter": [ | |
"all" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"background-color": "rgba(69, 86, 71, .9)" | |
} | |
}, | |
{ | |
"id": "land", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "land", | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(98, 117, 98, 1)" | |
} | |
}, | |
{ | |
"id": "pier", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "other_areas", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"pier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(98, 117, 98, 1)" | |
} | |
}, | |
{ | |
"id": "landuse_areas_z13", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 13, | |
"maxzoom": 24, | |
"paint": { | |
"fill-color": { | |
"property": "type", | |
"type": "categorical", | |
"default": "transparent", | |
"stops": [ | |
[ | |
"farmland", | |
"rgba(189, 130, 88, 0.13)" | |
], | |
[ | |
"farm", | |
"rgba(189, 130, 88, 0.13)" | |
], | |
[ | |
"orchard", | |
"rgba(189, 130, 88, 0.13)" | |
], | |
[ | |
"allotments", | |
"rgba(189, 130, 88, 0.13)" | |
], | |
[ | |
"residential", | |
"rgba(153, 195, 150, 0.2)" | |
], | |
[ | |
"college", | |
"rgba(120, 39, 31, 0.16)" | |
], | |
[ | |
"school", | |
"rgba(120, 39, 31, 0.16)" | |
], | |
[ | |
"education", | |
"rgba(120, 39, 31, 0.16)" | |
], | |
[ | |
"university", | |
"rgba(120, 39, 31, 0.16)" | |
], | |
[ | |
"park", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"sports_centre", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"stadium", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"grass", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"grassland", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"garden", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"village_green", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"recreation_ground", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"picnic_site", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"camp_site", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"playground", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"forest", | |
"rgba(100, 179, 100, 0.09)" | |
], | |
[ | |
"wood", | |
"rgba(100, 179, 100, 0.09)" | |
], | |
[ | |
"nature_reserve", | |
"rgba(100, 179, 100, 0.09)" | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "landuse_areas_z10", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 10, | |
"maxzoom": 13, | |
"paint": { | |
"fill-color": { | |
"property": "type", | |
"type": "categorical", | |
"default": "transparent", | |
"stops": [ | |
[ | |
"park", | |
"rgba(62, 195, 6, 0.15)" | |
], | |
[ | |
"forest", | |
"rgba(100, 179, 100, 0.09)" | |
], | |
[ | |
"wood", | |
"rgba(100, 179, 100, 0.09)" | |
], | |
[ | |
"nature_reserve", | |
"rgba(100, 179, 100, 0.09)" | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "landuse_areas_z7", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 7, | |
"maxzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"forest", | |
"wood", | |
"nature_reserve" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(100, 179, 100, 0.09)" | |
} | |
}, | |
{ | |
"id": "landuse_areas_z5", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 5, | |
"maxzoom": 7, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"forest", | |
"wood" | |
], | |
[ | |
">", | |
"area", | |
50000000 | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(100, 179, 100, 0.09)" | |
} | |
}, | |
{ | |
"id": "landuse_areas_z3", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 3, | |
"maxzoom": 5, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"forest", | |
"wood" | |
], | |
[ | |
">", | |
"area", | |
500000000 | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(100, 179, 100, 0.09)" | |
} | |
}, | |
{ | |
"id": "landuse_areas_military_overlay", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "landuse_areas", | |
"minzoom": 8, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"military" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(178, 194, 157, 1)", | |
"fill-pattern": "military-fill3" | |
} | |
}, | |
{ | |
"id": "water_lines", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "water_lines", | |
"minzoom": 8, | |
"maxzoom": 20, | |
"layout": {}, | |
"paint": { | |
"line-color": "rgba(69, 86, 71, .5)" | |
} | |
}, | |
{ | |
"id": "water_areas", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "water_areas", | |
"minzoom": 3, | |
"maxzoom": 20, | |
"paint": { | |
"fill-color": "rgba(69, 86, 71, .5)", | |
"fill-pattern": "waves", | |
"fill-opacity": 1 | |
} | |
}, | |
{ | |
"id": "pier_line", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "other_lines", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"pier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(98, 117, 98, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
12, | |
2 | |
], | |
[ | |
18, | |
7 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "state_lines_z10", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "admin_lines", | |
"minzoom": 10, | |
"maxzoom": 20, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"admin_level", | |
4 | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(178, 171, 171, 0.5)", | |
"line-dasharray": [ | |
6, | |
3 | |
] | |
} | |
}, | |
{ | |
"id": "state_lines_z2", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "state_lines", | |
"minzoom": 2, | |
"maxzoom": 10, | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(178, 171, 171, 0.5)", | |
"line-dasharray": [ | |
6, | |
3 | |
] | |
} | |
}, | |
{ | |
"id": "roads_track", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"track" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-dasharray": [ | |
2, | |
5 | |
], | |
"line-width": 2 | |
} | |
}, | |
{ | |
"id": "roads_footway", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"footway", | |
"cycleway" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": 1, | |
"line-dasharray": [ | |
1, | |
2 | |
] | |
} | |
}, | |
{ | |
"id": "roads_pier", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"pier" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": 4 | |
} | |
}, | |
{ | |
"id": "roads_railyard", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"any", | |
[ | |
"in", | |
"type", | |
"rail", | |
"disused" | |
], | |
[ | |
"in", | |
"service", | |
"yard", | |
"siding" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
15, | |
0.35 | |
], | |
[ | |
20, | |
2.25 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_rail", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"rail" | |
], | |
[ | |
"!in", | |
"service", | |
"yard", | |
"siding" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
14, | |
1.25 | |
], | |
[ | |
20, | |
2.25 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_tertiary", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"tertiary", | |
"unclassified", | |
"residential", | |
"living_street" | |
], | |
[ | |
"!=", | |
"tunnel", | |
1 | |
] | |
], | |
"paint": { | |
"line-color": "rgba(118, 125, 118, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
14, | |
1 | |
], | |
[ | |
18, | |
5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_secondary", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"secondary" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
12, | |
2 | |
], | |
[ | |
14, | |
4 | |
], | |
[ | |
18, | |
14 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_primary", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"primary" | |
] | |
], | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
11, | |
2 | |
], | |
[ | |
14, | |
5 | |
], | |
[ | |
18, | |
20 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_motorway_z14", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"motorway", | |
"motorway_link", | |
"trunk", | |
"trunk_link" | |
] | |
], | |
"layout": { | |
"visibility": "visible", | |
"line-cap": "butt", | |
"line-join": "miter" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
14, | |
4 | |
], | |
[ | |
18, | |
20 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_motorway_z11", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 11, | |
"maxzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"motorway", | |
"trunk" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
11, | |
2 | |
], | |
[ | |
14, | |
3 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_motorway_z7", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 7, | |
"maxzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"motorway" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(150, 154, 142, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
7, | |
0.6 | |
], | |
[ | |
8, | |
1.2 | |
], | |
[ | |
9, | |
1.5 | |
], | |
[ | |
11, | |
2 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_links_z9", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 9, | |
"maxzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"trunk", | |
"primary" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
9, | |
1 | |
], | |
[ | |
11, | |
1.5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_trunk_z7", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 7, | |
"maxzoom": 9, | |
"filter": [ | |
"all", | |
[ | |
"in", | |
"type", | |
"trunk", | |
"primary" | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(140, 152, 140, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
7, | |
0.3 | |
], | |
[ | |
8, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_motorway_z4", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 4, | |
"maxzoom": 8, | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(119, 135, 119, 1)", | |
"line-width": { | |
"stops": [ | |
[ | |
4, | |
0.5 | |
], | |
[ | |
7, | |
1 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "roads_labels_minor", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"!in", | |
"type", | |
"motorway", | |
"subway", | |
"primary" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"symbol-placement": "line", | |
"text-size": { | |
"stops": [ | |
[ | |
14, | |
8 | |
], | |
[ | |
15, | |
10 | |
], | |
[ | |
18, | |
11 | |
] | |
] | |
}, | |
"icon-allow-overlap": true, | |
"icon-optional": false, | |
"text-line-height": 1.2, | |
"visibility": "visible", | |
"text-ignore-placement": false | |
}, | |
"paint": { | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-color": "rgba(45, 41, 32, 1)" | |
} | |
}, | |
{ | |
"id": "roads_labels_primary", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 11, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"primary" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"symbol-placement": "line", | |
"text-size": { | |
"stops": [ | |
[ | |
11, | |
8 | |
], | |
[ | |
13, | |
13 | |
], | |
[ | |
15, | |
14 | |
] | |
] | |
}, | |
"icon-allow-overlap": true, | |
"icon-optional": false, | |
"text-line-height": 1.2, | |
"visibility": "visible", | |
"text-ignore-placement": false | |
}, | |
"paint": { | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-color": "rgba(45, 41, 32, 1)" | |
} | |
}, | |
{ | |
"id": "admin_countrylines_z10", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "admin_lines", | |
"minzoom": 10, | |
"maxzoom": 20, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"admin_level", | |
2 | |
] | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(106, 95, 78, 1)", | |
"line-width": { | |
"stops": [ | |
[ 0, | |
1 | |
], | |
[ | |
7, | |
1.5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "admin_countrylines_z0", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "country_lines", | |
"minzoom": 0, | |
"maxzoom": 10, | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(106, 95, 78, 1)", | |
"line-width": { | |
"stops": [ | |
[ 0, | |
1 | |
], | |
[ | |
7, | |
1.5 | |
] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "admin_countrylinesdisputed", | |
"type": "line", | |
"source": "osm", | |
"source-layer": "country_lines_disputed", | |
"minzoom": 0, | |
"maxzoom": 20, | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"line-color": "rgba(106, 95, 78, 1)", | |
"line-width": { | |
"stops": [ | |
[ 0, | |
1 | |
], | |
[ | |
7, | |
1.5 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
4, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "buildings_2d", | |
"type": "fill", | |
"source": "osm", | |
"source-layer": "buildings", | |
"minzoom": 0, | |
"filter": [ | |
"all" | |
], | |
"layout": { | |
"visibility": "visible" | |
}, | |
"paint": { | |
"fill-color": "rgba(58, 58, 33, 0.3)", | |
"fill-outline-color": "rgba(105, 105, 80, 0.51)", | |
"fill-opacity": 1 | |
} | |
}, | |
{ | |
"id": "city_labels_z14", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "admin_lines", | |
"minzoom": 14, | |
"maxzoom": 20, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"admin_level", | |
8 | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"text-size": 10, | |
"text-transform": "uppercase", | |
"text-letter-spacing": 0.5 | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "city_labels_z12", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 12, | |
"maxzoom": 14, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Populated place" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"text-size": 10, | |
"text-transform": "uppercase", | |
"text-letter-spacing": 0.5 | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "city_labels_z6", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 6, | |
"maxzoom": 12, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Populated place" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"text-size": 10 | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "state_labels", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "state_label_points", | |
"minzoom": 4, | |
"maxzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"scalerank", | |
2 | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Bold Italic" | |
], | |
"text-size": { | |
"stops": [ | |
[ | |
4, | |
8 | |
], | |
[ | |
10, | |
16 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "rgba(119, 135, 119, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "statecapital_labels_z10", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 10, | |
"maxzoom": 20, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Admin-1 capital" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Bold" | |
], | |
"text-size": 10, | |
"text-transform": "uppercase" | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "statecapital_labels_z4", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 4, | |
"maxzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Admin-1 capital" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Bold" | |
], | |
"text-size": { | |
"stops": [ | |
[ | |
4, | |
7 | |
], | |
[ | |
10, | |
10 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "capital_labels_z10", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 10, | |
"maxzoom": 20, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Admin-0 capital" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Bold" | |
], | |
"text-size": 11, | |
"text-transform": "uppercase" | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "capital_labels_z3", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "populated_places", | |
"minzoom": 3, | |
"maxzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"featurecla", | |
"Admin-0 capital" | |
] | |
], | |
"layout": { | |
"text-field": "{name}", | |
"text-font": [ | |
"Open Sans Bold" | |
], | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
9 | |
], | |
[ | |
10, | |
11 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "rgba(69, 86, 71, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "country_labels", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "country_label_points", | |
"minzoom": 3, | |
"maxzoom": 7, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"scalerank", | |
0 | |
] | |
], | |
"layout": { | |
"text-field": "{sr_subunit}", | |
"text-font": [ | |
"Open Sans Bold" | |
], | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
11 | |
], | |
[ | |
7, | |
13 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "rgba(106, 95, 78, 1)", | |
"text-halo-color": "rgba(98, 117, 98, 1)", | |
"text-halo-width": 1, | |
"text-halo-blur": 5 | |
} | |
}, | |
{ | |
"id": "roads_14_shields", | |
"type": "symbol", | |
"source": "osm", | |
"source-layer": "transport_lines", | |
"minzoom": 14, | |
"maxzoom": 24, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"type", | |
"motorway" | |
], | |
[ | |
"!=", | |
"ref", | |
"" | |
] | |
], | |
"layout": { | |
"text-field": "{ref}", | |
"text-font": [ | |
"Open Sans Regular" | |
], | |
"symbol-placement": "line", | |
"text-size": { | |
"stops": [ | |
[ | |
14, | |
11 | |
], | |
[ | |
15, | |
14 | |
] | |
] | |
}, | |
"icon-allow-overlap": false, | |
"icon-optional": false, | |
"text-line-height": 1.2, | |
"visibility": "visible", | |
"text-ignore-placement": false, | |
"icon-image": "camoshield6", | |
"icon-rotation-alignment": "viewport", | |
"text-rotation-alignment": "viewport", | |
"text-pitch-alignment": "viewport", | |
"symbol-spacing": 500, | |
"icon-text-fit": "width", | |
"icon-text-fit-padding": [ | |
0, | |
10, | |
0, | |
10 | |
], | |
"icon-size": 1 | |
}, | |
"paint": { | |
"text-color": "rgba(51, 51, 51, 1)" | |
} | |
} | |
], | |
"created": "2017-01-04T21:12:33.904Z", | |
"id": "f0usgx9v5", | |
"owner": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment