moved to https://github.com/aaronlidman/osm-and-geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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, |
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.