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
// based off of http://labs.unwieldy.net/moocirclepack/ | |
org.polymaps.packer = function() { | |
var packer = {}, | |
nodes = [], | |
elements = [], | |
timesToPack = 50; | |
packer.elements = function(e) { | |
if (!arguments.length) { | |
return elements; |
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
org.polymaps.paths = function() { | |
var paths = org.polymaps.geoJson(), | |
mode = "arc", // or "line" | |
storedPaths = []; | |
// a and b are location objects, c is the optional class to apply to them | |
paths.connect = function(a, b, c) { | |
var locations = []; | |
locations.push([a.lon, a.lat]); |