Use typedef in source code for SourceOptions

This commit is contained in:
Éric Lemoine
2013-09-23 17:53:25 +02:00
parent 3546a15f39
commit b2c336c29e
2 changed files with 9 additions and 8 deletions

View File

@@ -530,14 +530,6 @@
* @property {string|undefined} url WMS service URL. * @property {string|undefined} url WMS service URL.
*/ */
/**
* @typedef {Object} ol.source.SourceOptions
* @property {Array.<ol.Attribution>|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 * @typedef {Object} ol.source.StamenOptions
* @property {string} layer Layer. * @property {string} layer Layer.

View File

@@ -8,6 +8,15 @@ goog.require('ol.Extent');
goog.require('ol.proj'); goog.require('ol.proj');
/**
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* extent: (ol.Extent|undefined),
* logo: (string|undefined),
* projection: ol.proj.ProjectionLike}}
*/
ol.source.SourceOptions;
/** /**
* @constructor * @constructor