Skip to content

Instantly share code, notes, and snippets.

@almccon
Created June 13, 2018 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almccon/5493c1d4599db3e521b5261bb5fa5fd6 to your computer and use it in GitHub Desktop.
Save almccon/5493c1d4599db3e521b5261bb5fa5fd6 to your computer and use it in GitHub Desktop.
tangram.yaml
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