From b2c336c29e9e16b961eda69abd12f984fabd5fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 23 Sep 2013 17:53:25 +0200 Subject: [PATCH] Use typedef in source code for SourceOptions --- src/objectliterals.jsdoc | 8 -------- src/ol/source/source.js | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index d941a65ff5..613e1a51e9 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -530,14 +530,6 @@ * @property {string|undefined} url WMS service URL. */ -/** - * @typedef {Object} ol.source.SourceOptions - * @property {Array.|undefined} attributions Attributions. - * @property {ol.Extent|undefined} extent Extent. - * @property {string|undefined} logo Logo. - * @property {ol.proj.ProjectionLike} projection Projection. - */ - /** * @typedef {Object} ol.source.StamenOptions * @property {string} layer Layer. diff --git a/src/ol/source/source.js b/src/ol/source/source.js index 2f1f0db681..b7d2d0206b 100644 --- a/src/ol/source/source.js +++ b/src/ol/source/source.js @@ -8,6 +8,15 @@ goog.require('ol.Extent'); goog.require('ol.proj'); +/** + * @typedef {{attributions: (Array.|undefined), + * extent: (ol.Extent|undefined), + * logo: (string|undefined), + * projection: ol.proj.ProjectionLike}} + */ +ol.source.SourceOptions; + + /** * @constructor