Skip to content

Instantly share code, notes, and snippets.

@stevevance
Last active August 18, 2016 21:03
Show Gist options
  • Save stevevance/95af1ed0314f618fb0ee5232432a19f3 to your computer and use it in GitHub Desktop.
Save stevevance/95af1ed0314f618fb0ee5232432a19f3 to your computer and use it in GitHub Desktop.
Tangram scene for the Morgantown PRT
import: https://mapzen.com/carto/zinc-style/zinc-style.yaml
sources:
mapzen:
type: TopoJSON
url: https://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson
stops:
type: GeoJSON
url: https://transit.land/api/v1/stops.geojson?served_by=o-dpp1s-wvuprt
styles:
ants:
base: lines
blend: overlay
texcoords: true
animated: true
shaders:
blocks:
color: |
color.a = step(.95,fract((u_time/10.50)-v_texcoord.y*.05));
layers:
PRT:
data:
source: mapzen
layer: roads
filter: { name: PRT }
draw:
lines:
order: 499
width: 2px
color: [0.290, 0.290, 0.835, 1.00]
outlines:
style: lines
order: 4
color: cyan
width: 3px
order: 498
stops:
data:
source: stops
draw:
points1:
style: points
collide: false
color: [0.812, 0.651, 0.129, 0.80]
size: 30px
points2:
style: points
collide: false
color: [1.000, 1.000, 1.000, 1.00]
size: 20px
text:
font:
family: Helvetica
size: 50px
fill: red
order: global.order-top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment