Skip to content

Instantly share code, notes, and snippets.

@stevevance
Created September 30, 2016 00:15
Show Gist options
  • Save stevevance/2f6ed232a2692d634a0dfb4127609e7a to your computer and use it in GitHub Desktop.
Save stevevance/2f6ed232a2692d634a0dfb4127609e7a to your computer and use it in GitHub Desktop.
Futzing with opacity for Truckee transit
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
coverage:
type: GeoJSON
url: https://transit.land/api/v1/operators/o-9qfx-tahoeareametroaltransit.geojson
#url: https://transit.land/api/v1/feeds/f-9qf-laketahoe~ca~us.geojson
tart:
type: GeoJSON
url: https://transit.land/api/v1/routes.geojson?operated_by=o-9qfx-tahoeareametroaltransit
express:
type: GeoJSON
url: https://transit.land/api/v1/routes.geojson?operated_by=o-9qfx-northlaketahoeexpress~24houradvancereservationsrequired
bluego:
type: GeoJSON
url: https://transit.land/api/v1/routes.geojson?operated_by=o-9qft-bluego
stops:
type: GeoJSON
url: https://transit.land/api/v1/stops.geojson?served_by=o-9qfx-tahoeareametroaltransit
styles:
text-overlay:
base: text
#texture: pois
interactive: true
blend: overlay
blend_order: 3
point-overlay:
base: points
#texture: pois
interactive: true
blend: inlay
blend_order: 3
layers:
coverage:
data: {source: coverage}
draw:
polygons:
order: 490
color: [0.620, 0.176, 0.176, 0.00]
tart:
data: { source: tart,}
filter:
$zoom: { min: 8, max: 20 }
draw:
lines:
order: 499
width: 5px
# color: [0.290, 0.290, 0.835, 1.00]
color: [0.871, 0.259, 0.439, 1.00]
# outlines:
# style: lines
# order: 4
# color: [0.498, 0.216, 0.757, 1.00]
# width: 4px
# order: 498
mainline:
data:
source: tart
filter: { name: "TART Mainline" }
draw:
lines:
order: 400
width: 10px
color: [0.000, 0.090, 1.000, 1.00]
# outlines:
# style: lines
# color: aqua
# width: 4px
# order: 599
bluego:
data:
source: bluego
draw:
lines:
order: 400
width: 4px
color: [0.459, 0.776, 0.235, 1.00]
# outlines:
# style: lines
# color: aqua
# width: 4px
# order: 599
express:
data:
source: express
draw:
lines:
order: 600
width: 2px
color: [1.000, 0.933, 0.263, 1.00]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment