Remove ol.sphere.WGS84

This commit is contained in:
Tim Schaub
2017-07-11 08:00:41 -06:00
parent aced192bcd
commit 2e903c0293
4 changed files with 32 additions and 31 deletions

View File

@@ -4,8 +4,8 @@
goog.provide('ol.test.Sphere');
goog.require('ol.Sphere');
goog.require('ol.sphere.WGS84');
goog.require('ol.format.WKT');
goog.require('ol.proj.EPSG4326');
describe('ol.Sphere', function() {
@@ -102,7 +102,8 @@ describe('ol.Sphere', function() {
it('results match the expected area of Ilinois', function() {
var coords = geometry.getPolygon(0).getLinearRing(0).getCoordinates();
expect(ol.sphere.WGS84.geodesicArea(coords)).to.equal(145978332359.37125);
var sphere = new ol.Sphere(ol.proj.EPSG4326.RADIUS);
expect(sphere.geodesicArea(coords)).to.equal(145978332359.37125);
});
});