Skip to content

Instantly share code, notes, and snippets.

View meetar's full-sized avatar

Peter Richardson meetar

View GitHub Profile
# include: transit.yaml
scene:
background:
color: red
sources:
mapzen:
type: TopoJSON
url: http://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson?api_key=vector-tiles-HqUVidw
@meetar
meetar / scene.yaml
Last active January 22, 2016 19:01 — forked from anonymous/scene.yaml
[This is a Tangram scene, made with Tangram Play.]
# Author @patriciogv - 2015
cameras:
camera1:
type: perspective
styles:
space-tile:
shaders:
blocks:
global: |
{
"tests": {
"world-1!": {
"url": "https://raw.githubusercontent.com/tangrams/tangram/master/demos/scene.yaml",
"location": [0,0,0]
},
"cinnabar-1!": {
"url": "https://raw.githubusercontent.com/tangrams/cinnabar-style/gh-pages/cinnabar-style.yaml",
"location": [0,0,1]
},
{
"tests": {
"problem-1": {
"url": "https://raw.githubusercontent.com/tangrams/tangram/master/demos/scene.yaml",
"location": [51.50286581276559,-0.12119293212890626,14]
},
"problem-2": {
"url": "https://raw.githubusercontent.com/tangrams/tangram-sandbox/gh-pages/styles/tron.yaml",
"location": [51.50286581276559,-0.12119293212890626,14]
},
@meetar
meetar / free-as-in-links.md
Last active June 8, 2016 15:59
Links mentioned in @meetar's GeoJourNews 2016 talk Free As In Maps
// load a file from a URL
function readTextFile(file, callback, errorback) {
var rawFile = new XMLHttpRequest();
// only change this if you know you want to force a particular mime type and are having trouble
// rawFile.overrideMimeType("application/json");
try {
rawFile.open("GET", file, true);
} catch (e) {
console.error("Error opening file:", e);
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am meetar on github.
  • I am meetar (https://keybase.io/meetar) on keybase.
  • I have a public key ASDXh5vWVO1BePjrIelY7o699wbBjpG6EkK8cKt9pFPLeAo

To claim this, I am signing this object:

@meetar
meetar / mapzen-logo.png
Created August 27, 2018 22:13 — forked from tallytalwar/mapzen-logo.png
test scene
mapzen-logo.png
@meetar
meetar / monitor.svg
Created September 18, 2020 21:29
monitor.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.