Make ol.Ellipsoid properties constant

This commit is contained in:
Tom Payne
2013-06-12 15:59:59 +02:00
parent 9751bde8d1
commit 1e9ccab806
+3
View File
@@ -13,16 +13,19 @@ goog.require('ol.Coordinate');
ol.Ellipsoid = function(a, flattening) { ol.Ellipsoid = function(a, flattening) {
/** /**
* @const
* @type {number} * @type {number}
*/ */
this.a = a; this.a = a;
/** /**
* @const
* @type {number} * @type {number}
*/ */
this.flattening = flattening; this.flattening = flattening;
/** /**
* @const
* @type {number} * @type {number}
*/ */
this.b = this.a * (1 - this.flattening); this.b = this.a * (1 - this.flattening);