Merge pull request #12021 from tschaub/lazy-source-config

Allow source projection to be set after construction
This commit is contained in:
Tim Schaub
2021-02-11 07:51:29 -07:00
committed by GitHub

View File

@@ -51,10 +51,10 @@ class Source extends BaseObject {
super();
/**
* @private
* @protected
* @type {import("../proj/Projection.js").default}
*/
this.projection_ = getProjection(options.projection);
this.projection = getProjection(options.projection);
/**
* @private
@@ -113,7 +113,7 @@ class Source extends BaseObject {
* @api
*/
getProjection() {
return this.projection_;
return this.projection;
}
/**