projection may be null

This commit is contained in:
mike-000
2022-04-12 16:22:25 +01:00
committed by GitHub
parent eaa87e8d8f
commit e8257f1bb3
+2 -2
View File
@@ -54,7 +54,7 @@ class Source extends BaseObject {
/** /**
* @protected * @protected
* @type {import("../proj/Projection.js").default} * @type {import("../proj/Projection.js").default|null}
*/ */
this.projection = getProjection(options.projection); this.projection = getProjection(options.projection);
@@ -141,7 +141,7 @@ class Source extends BaseObject {
/** /**
* Get the projection of the source. * Get the projection of the source.
* @return {import("../proj/Projection.js").default} Projection. * @return {import("../proj/Projection.js").default|null} Projection.
* @api * @api
*/ */
getProjection() { getProjection() {