Change projection property in sources options to optional

The `projection` property is not mandatory, the view's projection is used if not provided.
This commit is contained in:
Frederic Junod
2018-11-21 16:23:27 +01:00
parent c6be2c7ff5
commit 087b024a24
7 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ import SourceState from './State.js';
* @typedef {Object} Options
* @property {AttributionLike} [attributions]
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
* @property {import("../proj.js").ProjectionLike} projection
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
* @property {SourceState} [state='ready']
* @property {boolean} [wrapX=false]
*/