Last active
April 6, 2016 14:11
-
-
Save cmtoomey/73aff4b3eabaa9c5debc229d6560b53a to your computer and use it in GitHub Desktop.
Mapbox PATCH
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
PATCH /styles/v1/cmtoomey/cikzyao29004davm1r7aull0w?access_token=[token] HTTP/1.1 | |
Host: api.mapbox.com | |
Content-Type: application/json | |
Cache-Control: no-cache | |
Postman-Token: fc3820e4-18bb-5e99-597c-27e9eb3549b5 | |
{ | |
"version": 8, | |
"name": "Basic", | |
"metadata": { | |
"mapbox:autocomposite": false | |
}, | |
"center": [ | |
-122.29201940176597, | |
47.58755399489817 | |
], | |
"zoom": 10.24118859207822, | |
"bearing": 0, | |
"pitch": 0, | |
"sources": { | |
"composite": { | |
"url": "mapbox://mapbox.mapbox-streets-v6", | |
"type": "vector" | |
} | |
}, | |
"sprite": "mapbox://sprites/cmtoomey/cikzyao29004davm1r7aull0w", | |
"glyphs": "mapbox://fonts/cmtoomey/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "background", | |
"type": "background", | |
"paint": { | |
"background-color": "#dedede" | |
}, | |
"interactive": true, | |
"layout": { | |
"visibility": "visible" | |
} | |
}, | |
{ | |
"id": "landuse_park", | |
"type": "fill", | |
"source": "composite", | |
"source-layer": "landuse", | |
"filter": [ | |
"==", | |
"class", | |
"park" | |
], | |
"paint": { | |
"fill-color": "#d2edae" | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "waterway", | |
"type": "line", | |
"source": "composite", | |
"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": "composite", | |
"source-layer": "water", | |
"layout": { | |
"visibility": "none" | |
}, | |
"paint": { | |
"fill-color": "hsl(201, 73%, 56%)" | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "building", | |
"type": "fill", | |
"source": "composite", | |
"source-layer": "building", | |
"paint": { | |
"fill-color": "#d6d6d6" | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "tunnel_minor", | |
"type": "line", | |
"source": "composite", | |
"source-layer": "tunnel", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"driveway", | |
"path" | |
] | |
], | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
0.36, | |
0.18 | |
] | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "tunnel_major", | |
"type": "line", | |
"source": "composite", | |
"source-layer": "tunnel", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"main" | |
] | |
], | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
}, | |
"line-dasharray": [ | |
0.28, | |
0.14 | |
] | |
}, | |
"interactive": true | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"driveway", | |
"path" | |
] | |
], | |
"type": "line", | |
"source": "composite", | |
"id": "road_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" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"main" | |
] | |
], | |
"type": "line", | |
"source": "composite", | |
"id": "road_major", | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"source-layer": "road" | |
}, | |
{ | |
"id": "bridge_minor_case", | |
"type": "line", | |
"source": "composite", | |
"source-layer": "bridge", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"driveway", | |
"path" | |
] | |
], | |
"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 | |
] | |
] | |
} | |
}, | |
"interactive": true | |
}, | |
{ | |
"id": "bridge_major_case", | |
"type": "line", | |
"source": "composite", | |
"source-layer": "bridge", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"main" | |
] | |
], | |
"paint": { | |
"line-color": "#dedede", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
}, | |
"line-gap-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"interactive": true | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway_link", | |
"street", | |
"street_limited", | |
"service", | |
"driveway", | |
"path" | |
] | |
], | |
"type": "line", | |
"source": "composite", | |
"id": "bridge_minor", | |
"paint": { | |
"line-color": "#efefef", | |
"line-width": { | |
"base": 1.55, | |
"stops": [ | |
[ | |
4, | |
0.25 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"source-layer": "bridge" | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"main" | |
] | |
], | |
"type": "line", | |
"source": "composite", | |
"id": "bridge_major", | |
"paint": { | |
"line-color": "#fff", | |
"line-width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
6, | |
0.5 | |
], | |
[ | |
20, | |
30 | |
] | |
] | |
} | |
}, | |
"source-layer": "bridge" | |
}, | |
{ | |
"interactive": true, | |
"layout": { | |
"line-cap": "round", | |
"line-join": "round" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"all", | |
[ | |
"<=", | |
"admin_level", | |
2 | |
], | |
[ | |
"==", | |
"maritime", | |
0 | |
] | |
] | |
], | |
"type": "line", | |
"source": "composite", | |
"id": "admin_country", | |
"paint": { | |
"line-color": "#8b8a8a", | |
"line-width": { | |
"base": 1.3, | |
"stops": [ | |
[ | |
3, | |
0.5 | |
], | |
[ | |
22, | |
15 | |
] | |
] | |
} | |
}, | |
"source-layer": "admin" | |
}, | |
{ | |
"interactive": true, | |
"minzoom": 5, | |
"layout": { | |
"icon-image": "{maki}-12", | |
"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 | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"all", | |
[ | |
"==", | |
"scalerank", | |
1 | |
], | |
[ | |
"==", | |
"localrank", | |
1 | |
] | |
] | |
], | |
"type": "symbol", | |
"source": "composite", | |
"id": "poi_label", | |
"paint": { | |
"text-color": "#666", | |
"text-halo-width": 1, | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-blur": 1 | |
}, | |
"source-layer": "poi_label" | |
}, | |
{ | |
"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 | |
] | |
] | |
}, | |
"visibility": "visible" | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"LineString" | |
], | |
[ | |
"in", | |
"class", | |
"motorway", | |
"main" | |
] | |
], | |
"type": "symbol", | |
"source": "composite", | |
"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, | |
"minzoom": 8, | |
"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 | |
] | |
] | |
} | |
}, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"in", | |
"type", | |
"town", | |
"village", | |
"hamlet", | |
"suburb", | |
"neighbourhood" | |
] | |
], | |
"type": "symbol", | |
"source": "composite", | |
"id": "place_label_other", | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
}, | |
"source-layer": "place_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": "composite", | |
"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" | |
}, | |
{ | |
"interactive": true, | |
"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 | |
] | |
] | |
} | |
}, | |
"maxzoom": 16, | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"$type", | |
"Point" | |
], | |
[ | |
"==", | |
"type", | |
"city" | |
] | |
], | |
"type": "symbol", | |
"source": "composite", | |
"id": "place_label_city", | |
"paint": { | |
"text-color": "#666", | |
"text-halo-color": "rgba(255,255,255,0.75)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
}, | |
"source-layer": "place_label" | |
} | |
], | |
"created": "2016-02-23T21:55:21.390Z", | |
"id": "cikzyao29004davm1r7aull0w", | |
"modified": "2016-04-06T13:58:51.606Z", | |
"owner": "cmtoomey", | |
"draft": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment