Skip to content

Instantly share code, notes, and snippets.

View aaronlidman's full-sized avatar

Aaron Lidman aaronlidman

View GitHub Profile

UPDATE: The Vector Tiles are not being served at this time by Openstreetmap. Try later or a different provider (example) Services seem to have resumed

A simple test of extending the L.TileLayer to fetch geoJSON tiles from openstreetmap and render them with d3. This is probably not the most efficient way to do this, as we accept empty image tags (from the standard TileLayer) and use them as containers for the data/requests.

@aaronlidman
aaronlidman / index.html
Last active December 10, 2015 01:28 — forked from reneras/spin.js
<html>
<body>
<canvas id="demo" height="640" width="640" style="background-color: white;"></div>
</body>
<script type="text/javascript">
var canvas = document.getElementById('demo');
var context = canvas.getContext('2d');
var start = new Date();
var lines = 12,
cW = context.canvas.width,