Move olx.source.AttributionOption out of externs/olx.js
This commit is contained in:
@@ -4,6 +4,13 @@ goog.require('ol.TileRange');
|
||||
goog.require('ol.math');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {string|Array.<string>|ol.Attribution|Array.<ol.Attribution>}
|
||||
* @api
|
||||
*/
|
||||
ol.AttributionLike;
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* An attribution for a layer source.
|
||||
|
||||
@@ -12,7 +12,7 @@ goog.require('ol.source.Source');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
||||
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
||||
* extent: (null|ol.Extent|undefined),
|
||||
* logo: (string|olx.LogoOptions|undefined),
|
||||
* projection: ol.proj.ProjectionLike,
|
||||
|
||||
@@ -21,7 +21,7 @@ ol.source.State = {
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
||||
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
||||
* logo: (string|olx.LogoOptions|undefined),
|
||||
* projection: ol.proj.ProjectionLike,
|
||||
* state: (ol.source.State|undefined),
|
||||
@@ -84,7 +84,7 @@ goog.inherits(ol.source.Source, ol.Object);
|
||||
/**
|
||||
* Turns various ways of defining an attribution to an array of `ol.Attributions`.
|
||||
*
|
||||
* @param {olx.source.AttributionOption|undefined}
|
||||
* @param {ol.AttributionLike|undefined}
|
||||
* attributionLike The attributions as string, array of strings,
|
||||
* `ol.Attribution`, array of `ol.Attribution` or undefined.
|
||||
* @return {Array.<ol.Attribution>} The array of `ol.Attribution` or null if
|
||||
@@ -191,7 +191,7 @@ ol.source.Source.prototype.refresh = function() {
|
||||
|
||||
/**
|
||||
* Set the attributions of the source.
|
||||
* @param {olx.source.AttributionOption|undefined} attributions Attributions.
|
||||
* @param {ol.AttributionLike|undefined} attributions Attributions.
|
||||
* Can be passed as `string`, `Array<string>`, `{@link ol.Attribution}`,
|
||||
* `Array<{@link ol.Attribution}>` or `undefined`.
|
||||
* @api
|
||||
|
||||
@@ -17,7 +17,7 @@ goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
||||
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
||||
* cacheSize: (number|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
* logo: (string|olx.LogoOptions|undefined),
|
||||
|
||||
@@ -11,7 +11,7 @@ goog.require('ol.source.TileEvent');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
||||
* @typedef {{attributions: (ol.AttributionLike|undefined),
|
||||
* cacheSize: (number|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
* logo: (string|olx.LogoOptions|undefined),
|
||||
|
||||
Reference in New Issue
Block a user