Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
// Node.js as an alertnative to Lisp ;-) | |
// see http://norvig.com/java-lisp.html | |
// and http://www.flownet.com/ron/papers/lisp-java/instructions.html | |
// all we need from node.js is file reading | |
var fs = require('fs'); | |
// mappings from characters to digits |
// node.js geo polygon map tile rendering! | |
// requires https://github.com/learnboost/node-canvas and GeoJSON data files | |
// e.g. | |
// data from naturalearthdata.com converted to GeoJSON with GDAL's ogr2ogr | |
// or from datasf.org, reprojected too: | |
// ogr2ogr -f GeoJSON sfbay.js sfbay.shp -t_srs EPSG:4326 | |
var Canvas = require('./vendor/node-canvas/lib/canvas'), | |
http = require('http'), | |
fs = require('fs'); |
Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
http://www.win.tue.nl/~vanwijk/zoompan.pdf for Modest Maps JS |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Modest Maps JS</title> | |
<script type="text/javascript"> | |
/*! | |
* Modest Maps JS v0.13.2X (fork for gist) | |
* http://modestmaps.com/ | |
* |
function loadCSV(url, columns, callback) { | |
var req = new XMLHttpRequest(); | |
req.open('GET', url, true); | |
req.onreadystatechange = function (aEvt) { | |
if (req.readyState == 4) {// && req.status == 200) { | |
callback(parseCSV(req.responseText, columns)); | |
} | |
}; | |
req.send(null); | |
} |
package com.modestmaps.mapproviders.microsoft | |
{ | |
import com.modestmaps.core.Coordinate; | |
import com.modestmaps.mapproviders.AbstractMapProvider; | |
import com.modestmaps.mapproviders.IMapProvider; | |
import com.modestmaps.util.BinaryUtil; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; |
///// IN IMPORTS | |
import flash.events.IEventDispatcher; | |
import flash.events.EventDispatcher; | |
///// | |
///// IN CLASS DECLARATION: | |
implements IEventDispatcher | |
///// | |
///// IN CONSTRUCTOR: |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$.ajax({ | |
url: 'http://query.yahooapis.com/v1/public/yql', | |
data: { | |
q: "select * from csv where url='http://www.tom-carden.co.uk/p5/tube_map_travel_times/data/lines2.csv' and columns='station1,station2,line,time'", | |
format: 'json' |
/* | |
An Albers Equal Area Conic projection in javascript, for protovis. | |
For centering the contiguous states of the USA in a 800x400 div, I used: | |
var scale = pv.Geo.scale(albers(23, -96, 29.5, 45.5)) | |
.range({ x: -365, y: -375 }, { x: 1200, y: 1200 }); | |
http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html |