Created
June 13, 2018 21:51
-
-
Save almccon/5493c1d4599db3e521b5261bb5fa5fd6 to your computer and use it in GitHub Desktop.
tangram.yaml
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
sources: | |
xyz-osm: | |
type: MVT | |
url: https://xyz.api.here.com/tiles/osmbase/256/all/{z}/{x}/{y}.mvt | |
xyzspace: | |
url: | |
https://xyz.api.here.com/hub/spaces/iZ0RgIby/tile/web/{z}_{x}_{y} | |
url_params: | |
access_token: tY73HaInq0Vc4CvQb-ANAQ | |
clip: true | |
type: GeoJSON | |
layers: | |
water: | |
data: { source: xyzspace } | |
draw: | |
polygons: | |
order: 2 | |
color: [0.988, 0.106, 0.106, 1.00] | |
earth: | |
data: { source: xyz-osm } | |
draw: | |
polygons: | |
order: 1 | |
color: '#555555' | |
landuse: | |
data: { source: xyz-osm } | |
draw: | |
polygons: | |
order: 3 | |
color: '#666666' | |
roads: | |
data: { source: xyz-osm} | |
filter: { not: { kind: [rail, ferry] } } | |
draw: | |
lines: | |
order: 4 | |
color: '#ffffff' | |
width: [[7,0.0px], [10, .5px], [15, .75px], [17, 5m]] | |
highway: | |
filter: { kind: highway } | |
draw: | |
lines: | |
order: 5 | |
width: [[8,0px], [8,.25px], [11, 1.5px], [14, 2px], [16, 4px], [17, 10m]] | |
link: | |
filter: { is_link: true } # on- and off-ramps, etc | |
draw: | |
lines: | |
width: [[8,0px], [14, 3px], [16, 5px], [18, 10m]] | |
tunnel-link: | |
filter: {is_tunnel: true, $zoom: {min: 13} } | |
tunnel: | |
filter: {is_tunnel: true } | |
draw: | |
lines: | |
order: 6 | |
buildings: | |
data: { source: xyz-osm } | |
draw: | |
polygons: | |
order: 7 | |
color: '#999999' | |
extrude: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment