SQL for CartoDB to reproject the USA, with Alaska and Hawaii moved to the southwest of the lower 48
Modified from https://gist.github.com/ohasselblad/223582a53d5960c50a86
SQL for CartoDB to reproject the USA, with Alaska and Hawaii moved to the southwest of the lower 48
Modified from https://gist.github.com/ohasselblad/223582a53d5960c50a86
This demonstrates using topojson.merge, a new feature in TopoJSON 1.6, to merge multiple polygons into a single polygon whilst removing interior borders. (An alternative approach is to draw the polygons twice.)
Unlike mbostock's original example, this uses a pre-projected topojson file and a null projection.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #fff; | |
} | |
.stroke { | |
fill: none; |
or we just reply to each other with github gists |
Zoomable raster world map (which happens to be using Stamen's Map Stack).
Apparently I broke it by trying a projection other than the original. :(
Based off Calvin Metcalf's version, which in turn is based off Jason Davies map which is a combination of Mike Bostock’s raster reprojection, automatic projection tiles and a MapBox terrain example.
Thanks to Mike Bostock and Nelson Minar for their comments and encouragement! And Obviously Jason Davies for making the original.