Allow projection to be set after construction
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user