Skip to content

Instantly share code, notes, and snippets.

@bcamper
Last active September 10, 2015 16:02
Show Gist options
  • Save bcamper/6b7d85003a652c0018d6 to your computer and use it in GitHub Desktop.
Save bcamper/6b7d85003a652c0018d6 to your computer and use it in GitHub Desktop.
Tangram scene with multiple data sources
scene:
background:
color: lightblue
sources:
earth:
type: TopoJSON
url: //vector.mapzen.com/osm/earth/{z}/{x}/{y}.topojson
landuse:
type: TopoJSON
url: //vector.mapzen.com/osm/landuse/{z}/{x}/{y}.topojson
roads:
type: TopoJSON
url: //vector.mapzen.com/osm/roads/{z}/{x}/{y}.topojson
layers:
earth:
data:
source: earth
draw:
polygons:
order: 0
color: darkgrey
landuse:
data:
source: landuse
draw:
polygons:
order: 1
color: palegreen
roads:
data:
source: roads
draw:
lines:
order: 2
color: white
width: 2px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment