From c830ba07cee51c29664550b0caed4e31f951cf8a Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 10 Feb 2021 18:46:38 -0700 Subject: [PATCH] Allow projection to be set after construction --- src/ol/source/Source.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/source/Source.js b/src/ol/source/Source.js index cd07fc14b2..a2638e36ab 100644 --- a/src/ol/source/Source.js +++ b/src/ol/source/Source.js @@ -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; } /**