Skip to content

Instantly share code, notes, and snippets.

View warpedgeoid's full-sized avatar

Rob Howard warpedgeoid

  • North Carolina, USA
View GitHub Profile
@warpedgeoid
warpedgeoid / albers.js
Created November 29, 2018 21:41 — forked from RandomEtc/albers.js
An Albers Equal Area Conic projection in javascript, for protovis.
/*
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