Make ol.Ellipsoid properties constant

This commit is contained in:
Tom Payne
2013-06-12 15:59:59 +02:00
parent 9751bde8d1
commit 1e9ccab806

View File

@@ -13,16 +13,19 @@ goog.require('ol.Coordinate');
ol.Ellipsoid = function(a, flattening) {
/**
* @const
* @type {number}
*/
this.a = a;
/**
* @const
* @type {number}
*/
this.flattening = flattening;
/**
* @const
* @type {number}
*/
this.b = this.a * (1 - this.flattening);