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

@@ -20,7 +20,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid.
* to `false` (e.g. for sources with polygons that represent administrative
* boundaries or TopoJSON sources) allows the renderer to optimise fill and
* stroke operations.
* @property {import("../proj.js").ProjectionLike} projection Projection.
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
* @property {import("./State.js").default} [state] Source state.
* @property {typeof import("../VectorTile.js").default} [tileClass] Class used to instantiate image tiles.
* Default is {@link module:ol/VectorTile}.