From e73fb871b6b9efd07f5b646d7106dece207b074c Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Sat, 26 Oct 2013 11:36:16 -0400 Subject: [PATCH] Small addition to view2d docs --- src/objectliterals.jsdoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 2384b123ec..1e763a9e37 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -111,7 +111,8 @@ * @typedef {Object} ol.View2DOptions * @property {ol.Coordinate|undefined} center The initial center for the view. * The coordinate system for the center is specified with the `projection` - * option. Default is null. + * option. Default is null, and layer sources will not be fetched if this + * is not set. * @property {ol.Extent|undefined} extent The extent that constrains the center, * in other words, center cannot be set outside this extent. Default is none * @property {number|undefined} maxResolution The maximum resolution used to @@ -127,7 +128,9 @@ * `EPSG:3857` (Spherical Mercator). * @property {number|undefined} resolution The initial resolution for the view. * The units are `projection` units per pixel (e.g. meters per pixel). - * An alternative to setting this is to set `zoom`. + * An alternative to setting this is to set `zoom`. Default is undefined, + * and layer sources will not be fetched if neither this nor `zoom` are + * defined. * @property {Array.|undefined} resolutions Resolutions to determine the * resolution constraint. If set the `maxResolution`, `maxZoom` and * `zoomFactor` options are ignored.