Display GINA base layer in Antarctic Polar Stereographic projection.
Based on http://openlayers.org/en/master/examples/wms-tiled.html and http://openlayers.org/en/master/examples/wms-image-custom-proj.html
OpenLayers.Layer.D3 = OpenLayers.Class(OpenLayers.Layer.Vector, { | |
d3FeaturesNodeClass:'d3features', | |
d3Features:[], | |
afterAdd:function(){ | |
var self = this; | |
if(this.renderer.CLASS_NAME.match(/SVG$/)){ | |
this.d3InitSVG(); | |
this.events.register('moveend',this,this.onMoveEnd); |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #fcfcfa; | |
} | |
</style> | |
<body> |
Display GINA base layer in Antarctic Polar Stereographic projection.
Based on http://openlayers.org/en/master/examples/wms-tiled.html and http://openlayers.org/en/master/examples/wms-image-custom-proj.html
Use D3 to project points rather than leaflet (or OL)
-- Fix reference to raw git files
This demo several time scales. src
D3's time axis does magic things. I expected to modify the x axis such that I could mostly re-use D3's date formatting tricks, but exercise
Zoomable raster world map on an Lambert Conic Conformal aka Massachusetts State Plane.
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.
// Hat tip Mike Bostock: https://github.com/mbostock/polymaps/blob/master/examples/bounds/bounds.js | |
function bounds(features) { | |
var i = -1, | |
n = features.length, | |
geometry, | |
bounds = [{lon: Infinity, lat: Infinity}, {lon: -Infinity, lat: -Infinity}]; | |
while (++i < n) { | |
//geometry = features[i].data.geometry; | |
geometry = features[i].geometry; |
license: gpl-3.0 |