Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2017 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/adf5356d962b7032373064f6e9930369 to your computer and use it in GitHub Desktop.
Save anonymous/adf5356d962b7032373064f6e9930369 to your computer and use it in GitHub Desktop.
OCZen
{
"version": 8,
"name": "OCZen",
"metadata": {},
"sources": {
"tilezen": {
"type": "vector",
"tiles": [
"https://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt?api_key=vector-tiles-LM25tq4"
]
}
},
"glyphs": "https://orangemug.github.io/font-glyphs-v2/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "rgba(255, 255, 255, 1)"
}
},
{
"id": "water-line",
"type": "line",
"source": "tilezen",
"source-layer": "water",
"filter": [
"==",
"$type",
"LineString"
],
"paint": {
"line-color": "rgba(195, 227, 241, 1)",
"line-width": {
"base": 1.2,
"stops": [
[
8,
0.5
],
[
20,
15
]
]
}
}
},
{
"id": "park",
"type": "fill",
"source": "tilezen",
"source-layer": "landuse",
"minzoom": 6,
"filter": [
"all",
[
"in",
"kind",
"park",
"forest",
"nature_reserve",
"cemetery"
]
],
"paint": {
"fill-color": {
"stops": [
[
12,
"rgba(243, 247, 238, 1)"
],
[
16,
"rgba(197, 228, 160, 1)"
]
]
}
}
},
{
"id": "park-specific",
"type": "fill",
"source": "tilezen",
"source-layer": "landuse",
"minzoom": 6,
"filter": [
"all",
[
"in",
"kind",
"garden",
"grass",
"farm",
"meadow",
"playground",
"golf_course",
"nature_reserve",
"wetland",
"wood"
]
],
"paint": {
"fill-color": {
"stops": [
[
12,
"rgba(243, 247, 238, 1)"
],
[
16,
"rgba(146, 204, 81, 1)"
]
]
}
}
},
{
"id": "water-polygon",
"type": "fill",
"source": "tilezen",
"source-layer": "water",
"filter": [
"==",
"$type",
"Polygon"
],
"paint": {
"fill-color": "rgba(195, 227, 241, 1)"
}
},
{
"id": "river",
"type": "line",
"source": "tilezen",
"source-layer": "water",
"minzoom": 6,
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"kind",
"river"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(195, 227, 241, 1)",
"line-width": {
"base": 1.2,
"stops": [
[
8,
0.75
],
[
20,
15
]
]
}
}
},
{
"id": "stream-etc",
"type": "line",
"source": "tilezen",
"source-layer": "water",
"minzoom": 11,
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"in",
"kind",
"stream",
"canal"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
12,
"rgba(217, 239, 242, 1)"
],
[
15,
"#7acad0"
]
]
},
"line-width": {
"base": 1.4,
"stops": [
[
10,
0.5
],
[
20,
15
]
]
}
}
},
{
"id": "country-boundary",
"type": "line",
"source": "tilezen",
"source-layer": "boundaries",
"maxzoom": 4,
"filter": [
"all",
[
"==",
"admin_level",
2
]
],
"layout": {
"line-cap": "round",
"line-join": "round"
},
"paint": {
"line-color": "#afd3d3",
"line-width": {
"base": 2,
"stops": [
[
1,
0.5
],
[
7,
3
]
]
}
}
},
{
"id": "state-boundary",
"type": "line",
"source": "tilezen",
"source-layer": "boundaries",
"minzoom": 5,
"maxzoom": 18,
"filter": [
"all",
[
"==",
"admin_level",
4
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-dasharray": [
8,
2
],
"line-blur": 1,
"line-width": {
"stops": [
[
6,
2
],
[
11,
6
]
]
},
"line-color": "rgba(149, 151, 195, 1)"
}
},
{
"id": "subways",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"filter": [
"==",
"railway",
"subway"
],
"paint": {
"line-color": "#ef7369",
"line-dasharray": [
2,
1
]
}
},
{
"id": "link-tunnel",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"filter": [
"any",
[
"==",
"is_tunnel",
"yes"
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": "rgba(221, 139, 85, 0.7)",
"line-width": {
"base": 1.55,
"stops": [
[
4,
0.25
],
[
16,
8
]
]
},
"line-dasharray": [
1,
2
]
}
},
{
"id": "buildings",
"type": "fill",
"source": "tilezen",
"source-layer": "buildings",
"minzoom": 13,
"paint": {
"fill-color": {
"stops": [
[
13,
"rgba(255, 255, 255, 1)"
],
[
15,
"#ededed"
]
]
}
}
},
{
"id": "rail-carpet",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"filter": [
"all",
[
"==",
"railway",
"rail"
],
[
"!=",
"service",
"siding"
],
[
"!=",
"is_tunnel",
"yes"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
11,
"rgba(252, 252, 252, 1)"
],
[
15,
"rgba(252, 252, 252, 1)"
]
]
},
"line-width": 3,
"line-blur": 0
}
},
{
"id": "rail-crosses",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 16,
"maxzoom": 20,
"filter": [
"all",
[
"==",
"railway",
"rail"
],
[
"!=",
"service",
"siding"
],
[
"!=",
"is_tunnel",
"yes"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
11,
"rgba(230, 230, 230, 1)"
],
[
15,
"rgba(179, 179, 179, 1)"
]
]
},
"line-width": 3,
"line-dasharray": [
0.1,
8
]
}
},
{
"id": "rail",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"filter": [
"all",
[
"==",
"railway",
"rail"
],
[
"!=",
"service",
"siding"
],
[
"!=",
"is_tunnel",
"yes"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
11,
"rgba(230, 230, 230, 1)"
],
[
15,
"rgba(179, 179, 179, 1)"
]
]
}
}
},
{
"id": "link-bridge",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 13,
"filter": [
"all",
[
"==",
"is_link",
"yes"
],
[
"!in",
"kind",
"minor_road",
"major_road"
]
],
"layout": {
"line-join": "round",
"line-cap": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(239, 177, 116, 1)",
"line-width": {
"base": 1.55,
"stops": [
[
4,
0.5
],
[
8,
1.5
],
[
20,
40
]
]
}
}
},
{
"id": "path",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"==",
"kind",
"path"
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": "rgba(157, 187, 124, 1)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
0.15
],
[
16,
4
]
]
},
"line-dasharray": [
2,
2
]
}
},
{
"id": "road-minor",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 13,
"filter": [
"all",
[
"==",
"kind",
"minor_road"
],
[
"!=",
"highway",
"service"
]
],
"layout": {
"line-join": "round",
"line-cap": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#c0c4c2",
"line-width": {
"base": 1.55,
"stops": [
[
13,
0.25
],
[
20,
30
]
]
}
}
},
{
"id": "road-major-carpet",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 10,
"filter": [
"any",
[
"==",
"kind",
"major_road"
]
],
"layout": {
"line-join": "round",
"line-cap": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(230, 230, 230, 1)",
"line-width": {
"base": 1.55,
"stops": [
[
4,
2.25
],
[
16,
10
]
]
},
"line-opacity": 0.7
}
},
{
"id": "road-major",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 9,
"maxzoom": 24,
"filter": [
"any",
[
"==",
"kind",
"major_road"
]
],
"layout": {
"line-join": "round",
"line-cap": "round",
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
9,
"rgba(243, 206, 151, 1)"
],
[
10,
"rgba(239, 193, 63, 1)"
]
]
},
"line-width": {
"base": 1.55,
"stops": [
[
4,
0.25
],
[
16,
6
]
]
}
}
},
{
"id": "highway-carpet",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"filter": [
"all",
[
"==",
"kind",
"highway"
],
[
"!=",
"is_link",
"yes"
],
[
"!=",
"is_tunnel",
"yes"
]
],
"layout": {
"line-join": "round",
"line-cap": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(236, 236, 236, 1)",
"line-width": {
"base": 1.55,
"stops": [
[
4,
2.5
],
[
8,
3.5
],
[
16,
14
]
]
}
}
},
{
"id": "highway",
"type": "line",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 6,
"maxzoom": 24,
"filter": [
"all",
[
"==",
"kind",
"highway"
],
[
"!=",
"is_link",
"yes"
],
[
"!=",
"is_tunnel",
"yes"
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": {
"stops": [
[
6,
"rgba(230, 230, 230, 1)"
],
[
10,
"rgba(214, 113, 49, 1)"
]
]
},
"line-width": {
"base": 1.55,
"stops": [
[
4,
0.5
],
[
8,
1.5
],
[
16,
10
]
]
}
}
},
{
"id": "road-labels",
"type": "symbol",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 13,
"maxzoom": 24,
"filter": [
"any",
[
"==",
"kind",
"minor_road"
],
[
"==",
"kind",
"major_road"
]
],
"layout": {
"text-field": "{name}",
"symbol-placement": "line",
"text-font": [
"Open Sans"
],
"text-size": {
"stops": [
[
13,
12
],
[
14,
16
]
]
}
},
"paint": {
"text-halo-color": "rgba(255, 255, 255, 0.8)",
"text-halo-width": 2,
"text-color": "rgba(77, 77, 77, 1)"
}
},
{
"id": "path-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "roads",
"minzoom": 14,
"maxzoom": 24,
"filter": [
"==",
"kind",
"path"
],
"layout": {
"text-field": "{name}",
"symbol-placement": "line",
"text-font": [
"Open Sans Light"
],
"text-offset": [
0,
-0.6
],
"text-size": 14,
"text-letter-spacing": -0.1
},
"paint": {
"text-color": "rgba(102, 146, 65, 1)"
}
},
{
"id": "landuse-labels",
"type": "symbol",
"source": "tilezen",
"source-layer": "landuse",
"minzoom": 15,
"maxzoom": 24,
"filter": [
"all",
[
"==",
"kind",
"park"
]
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Italic"
],
"symbol-avoid-edges": true,
"text-size": 14,
"text-optional": true,
"text-padding": 15,
"symbol-spacing": 250
},
"paint": {
"text-color": "rgba(77, 128, 24, 1)",
"text-halo-color": "rgba(255, 255, 255, 0.5)",
"text-halo-width": 2
}
},
{
"id": "places",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 5,
"maxzoom": 12,
"filter": [
"all",
[
"!=",
"kind",
"state"
]
],
"layout": {
"text-field": "{name}",
"text-size": 14,
"visibility": "none"
},
"paint": {
"text-color": "rgba(19, 32, 66, 1)",
"text-halo-color": "rgba(255, 255, 255, 0.7)",
"text-halo-width": 3
}
},
{
"id": "suburbs-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 10,
"maxzoom": 24,
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"in",
"kind",
"neighbourhood",
"hamlet",
"suburb"
]
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Semibold"
],
"text-max-width": 10,
"text-size": {
"stops": [
[
10,
10
],
[
15,
21
]
]
},
"visibility": "visible",
"text-padding": 8
},
"paint": {
"text-color": {
"stops": [
[
10,
"rgba(128, 128, 128, 1)"
],
[
14,
"rgba(51, 51, 51, 1)"
]
]
},
"text-halo-color": "rgba(255,255,255,0.5)",
"text-halo-width": 2,
"text-opacity": {
"stops": [
[
10,
0.4
],
[
14,
1
]
]
}
}
},
{
"id": "country-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 1,
"maxzoom": 7,
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"==",
"kind",
"country"
]
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Semibold"
],
"text-max-width": 7,
"text-size": {
"stops": [
[
1,
10
],
[
4,
21
]
]
}
},
"paint": {
"text-color": "rgba(77, 77, 77, 1)",
"text-halo-color": "rgba(255,255,255,0.5)",
"text-opacity": {
"stops": [
[
2,
0.8
],
[
5,
0.5
]
]
}
}
},
{
"id": "state-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 3,
"maxzoom": 12,
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"==",
"kind",
"state"
],
[
"!=",
"name",
"Jervis Bay Territory"
]
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Semibold"
],
"text-max-width": 8,
"text-size": {
"stops": [
[
7,
18
],
[
10,
30
]
]
},
"visibility": "visible",
"text-letter-spacing": 0.2
},
"paint": {
"text-color": "rgba(14, 9, 11, 1)",
"text-halo-color": "rgba(255,255,255,0.5)"
}
},
{
"id": "city-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 2,
"maxzoom": 14,
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"in",
"kind",
"city",
"county",
"district"
]
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Semibold"
],
"text-max-width": 10,
"text-letter-spacing": 0.1,
"text-size": {
"stops": [
[
8,
14
],
[
12,
21
]
]
},
"visibility": "visible"
},
"paint": {
"text-color": "#384646",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 4
}
},
{
"id": "cities-lowzoom",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 5,
"maxzoom": 12,
"filter": [
"all",
[
"in",
"kind",
"Admin-1 capital",
"Admin-0 capital"
]
],
"layout": {
"text-field": "{name}",
"text-size": {
"stops": [
[
8,
16
],
[
14,
24
]
]
},
"visibility": "visible",
"text-font": [
"Open Sans Bold"
],
"symbol-avoid-edges": true
},
"paint": {
"text-color": "rgba(19, 32, 66, 1)",
"text-halo-color": "rgba(255, 255, 255, 0.7)",
"text-halo-width": 3
}
},
{
"id": "ocean-label",
"type": "symbol",
"source": "tilezen",
"source-layer": "places",
"minzoom": 2,
"maxzoom": 6,
"filter": [
"==",
"kind",
"ocean"
],
"layout": {
"text-field": "{name}",
"text-font": [
"Open Sans Italic"
],
"text-max-width": 14,
"text-letter-spacing": 0.1,
"text-size": {
"stops": [
[
2,
28
],
[
6,
32
]
]
}
},
"paint": {
"text-color": "#ededed",
"text-halo-color": "rgba(0,0,0,0.2)"
}
},
{
"id": "poi-labels",
"type": "symbol",
"source": "tilezen",
"source-layer": "pois",
"layout": {
"text-field": "{name}",
"visibility": "none",
"text-font": [
"Open Sans"
]
},
"paint": {
"text-color": "rgba(67, 82, 245, 1)"
}
}
],
"id": "mg9ht70cm",
"owner": "Steve Bennett"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment