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-28 15:59:44 +01:00
parent 85abe3695a
commit 28bdbeb869
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ class ImageSourceEvent extends Event {
/**
* @typedef {Object} Options
* @property {import("./Source.js").AttributionLike} [attributions]
* @property {import("../proj.js").ProjectionLike} projection
* @property {import("../proj.js").ProjectionLike} [projection]
* @property {Array<number>} [resolutions]
* @property {import("./State.js").default} [state]
*/