ol.Projection now takes a single argument

which is called ol.ProjectionOptions.
This commit is contained in:
Bruno Binet
2013-03-06 19:41:10 +01:00
parent 8dd3093f4c
commit 9d88273161
7 changed files with 51 additions and 26 deletions
+6 -2
View File
@@ -14,8 +14,12 @@ goog.require('ol.projection');
* @param {string=} opt_axisOrientation Axis orientation.
*/
ol.projection.EPSG4326 = function(code, opt_axisOrientation) {
goog.base(this, code, ol.ProjectionUnits.DEGREES,
ol.projection.EPSG4326.EXTENT, opt_axisOrientation);
goog.base(this, {
code: code,
units: ol.ProjectionUnits.DEGREES,
extent: ol.projection.EPSG4326.EXTENT,
axisOrientation: opt_axisOrientation
});
};
goog.inherits(ol.projection.EPSG4326, ol.Projection);