Using d3.geo.tile to display vector tiles using canvas, with d3.behavior.zoom for pan & zoom. This example provides additional mechanism for caching tile data, and different road styles dependend on types from json tiles.
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
require('../src/app'); | |
var chokidar = require('chokidar'); | |
var ignore = [ 'node_modules', 'backend' ]; // directories to ignore | |
var watcher = chokidar.watch('./src/*/'); | |
var reloadCache = function(path) { | |
Object.keys(global.require.cache) | |
.filter(function(key) { | |
return ignore.every(function(value) { |
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
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
// | |
// require.js wrap by Szymon Kaliski contact@treesmovethemost.com | |
define([], function() { | |
/** |
NewerOlder