From 684ea356733afac752a04213e56f928b5148eeca Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 3 Mar 2013 16:17:38 +0100 Subject: [PATCH] Add sphere with radius equal to the semi-major axis of the WGS84 ellipsoid --- src/ol/sphere/wgs84.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/ol/sphere/wgs84.js diff --git a/src/ol/sphere/wgs84.js b/src/ol/sphere/wgs84.js new file mode 100644 index 0000000000..e30aafeb4b --- /dev/null +++ b/src/ol/sphere/wgs84.js @@ -0,0 +1,10 @@ +goog.provide('ol.sphere.WGS84'); + +goog.require('ol.Sphere'); + + +/** + * A sphere with radius equal to the semi-major axis of the WGS84 ellipsoid. + * @const {ol.Sphere} + */ +ol.sphere.WGS84 = new ol.Sphere(6378137);