Allow projection to be set after construction

This commit is contained in:
Tim Schaub
2021-02-10 18:46:38 -07:00
parent ebc8864680
commit c830ba07ce
+3 -3
View File
@@ -51,10 +51,10 @@ class Source extends BaseObject {
super(); super();
/** /**
* @private * @protected
* @type {import("../proj/Projection.js").default} * @type {import("../proj/Projection.js").default}
*/ */
this.projection_ = getProjection(options.projection); this.projection = getProjection(options.projection);
/** /**
* @private * @private
@@ -113,7 +113,7 @@ class Source extends BaseObject {
* @api * @api
*/ */
getProjection() { getProjection() {
return this.projection_; return this.projection;
} }
/** /**