Add basic documentation to @api symbols
This commit is contained in:
@@ -64,6 +64,8 @@ goog.inherits(ol.source.BingMaps, ol.source.TileImage);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The attribution containing a link to the Microsoft® Bing™ Maps Platform APIs’
|
||||||
|
* Terms Of Use.
|
||||||
* @const
|
* @const
|
||||||
* @type {ol.Attribution}
|
* @type {ol.Attribution}
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ goog.require('ol.source.Vector');
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @classdesc
|
||||||
|
* Layer source to cluster vector data.
|
||||||
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {olx.source.ClusterOptions} options
|
* @param {olx.source.ClusterOptions} options
|
||||||
* @extends {ol.source.Vector}
|
* @extends {ol.source.Vector}
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ ol.source.ImageMapGuide.prototype.getImage =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the image load function of the source.
|
||||||
* @return {ol.ImageLoadFunctionType} The image load function.
|
* @return {ol.ImageLoadFunctionType} The image load function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -176,7 +177,7 @@ ol.source.ImageMapGuide.prototype.getImageLoadFunction = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Extent} extent The map extents.
|
* @param {ol.Extent} extent The map extents.
|
||||||
* @param {ol.Size} size the viewport size.
|
* @param {ol.Size} size The viewport size.
|
||||||
* @param {number} metersPerUnit The meters-per-unit value.
|
* @param {number} metersPerUnit The meters-per-unit value.
|
||||||
* @param {number} dpi The display resolution.
|
* @param {number} dpi The display resolution.
|
||||||
* @return {number} The computed map scale.
|
* @return {number} The computed map scale.
|
||||||
@@ -238,6 +239,7 @@ ol.source.ImageMapGuide.prototype.getUrl =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the image load function of the MapGuide source.
|
||||||
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -260,6 +260,7 @@ ol.source.ImageWMS.prototype.getImage =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the image load function of the source.
|
||||||
* @return {ol.ImageLoadFunctionType} The image load function.
|
* @return {ol.ImageLoadFunctionType} The image load function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -336,6 +337,7 @@ ol.source.ImageWMS.prototype.getUrl = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the image load function of the source.
|
||||||
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
* @param {ol.ImageLoadFunctionType} imageLoadFunction Image load function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -348,6 +350,7 @@ ol.source.ImageWMS.prototype.setImageLoadFunction = function(
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URL to use for requests.
|
||||||
* @param {string|undefined} url URL.
|
* @param {string|undefined} url URL.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ ol.source.MapQuestConfig = {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the layer of the source, either `osm`, `sat`, or `hyb`.
|
||||||
* @return {string} Layer.
|
* @return {string} Layer.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ goog.inherits(ol.source.OSM, ol.source.XYZ);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The attribution containing a link to the OpenStreetMap Copyright and License
|
||||||
|
* page.
|
||||||
* @const
|
* @const
|
||||||
* @type {ol.Attribution}
|
* @type {ol.Attribution}
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ ol.source.Source.prototype.forEachFeatureAtCoordinate =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the attributions of the source.
|
||||||
* @return {Array.<ol.Attribution>} Attributions.
|
* @return {Array.<ol.Attribution>} Attributions.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -99,6 +100,7 @@ ol.source.Source.prototype.getAttributions = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the logo of the source.
|
||||||
* @return {string|olx.LogoOptions|undefined} Logo.
|
* @return {string|olx.LogoOptions|undefined} Logo.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -108,6 +110,7 @@ ol.source.Source.prototype.getLogo = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the projection of the source.
|
||||||
* @return {ol.proj.Projection} Projection.
|
* @return {ol.proj.Projection} Projection.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -123,6 +126,7 @@ ol.source.Source.prototype.getResolutions = goog.abstractMethod;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get the state of the source, see {@link ol.source.State} for possible states.
|
||||||
* @return {ol.source.State} State.
|
* @return {ol.source.State} State.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -132,6 +136,7 @@ ol.source.Source.prototype.getState = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the attributions of the source.
|
||||||
* @param {Array.<ol.Attribution>} attributions Attributions.
|
* @param {Array.<ol.Attribution>} attributions Attributions.
|
||||||
*/
|
*/
|
||||||
ol.source.Source.prototype.setAttributions = function(attributions) {
|
ol.source.Source.prototype.setAttributions = function(attributions) {
|
||||||
@@ -140,6 +145,7 @@ ol.source.Source.prototype.setAttributions = function(attributions) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the logo of the source.
|
||||||
* @param {string|olx.LogoOptions|undefined} logo Logo.
|
* @param {string|olx.LogoOptions|undefined} logo Logo.
|
||||||
*/
|
*/
|
||||||
ol.source.Source.prototype.setLogo = function(logo) {
|
ol.source.Source.prototype.setLogo = function(logo) {
|
||||||
@@ -148,6 +154,7 @@ ol.source.Source.prototype.setLogo = function(logo) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the state of the source.
|
||||||
* @param {ol.source.State} state State.
|
* @param {ol.source.State} state State.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -158,7 +165,8 @@ ol.source.Source.prototype.setState = function(state) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.proj.Projection} projection Projetion.
|
* Set the projection of the source.
|
||||||
|
* @param {ol.proj.Projection} projection Projection.
|
||||||
*/
|
*/
|
||||||
ol.source.Source.prototype.setProjection = function(projection) {
|
ol.source.Source.prototype.setProjection = function(projection) {
|
||||||
this.projection_ = projection;
|
this.projection_ = projection;
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ ol.source.TileArcGISRest.prototype.getUrls = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URL to use for requests.
|
||||||
* @param {string|undefined} url URL.
|
* @param {string|undefined} url URL.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -178,6 +179,7 @@ ol.source.TileArcGISRest.prototype.setUrl = function(url) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URLs to use for requests.
|
||||||
* @param {Array.<string>|undefined} urls URLs.
|
* @param {Array.<string>|undefined} urls URLs.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ ol.source.TileImage.prototype.getTile =
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the tile load function of the source.
|
||||||
* @return {ol.TileLoadFunctionType} TileLoadFunction
|
* @return {ol.TileLoadFunctionType} TileLoadFunction
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -121,6 +122,7 @@ ol.source.TileImage.prototype.getTileLoadFunction = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the tile URL function of the source.
|
||||||
* @return {ol.TileUrlFunctionType} TileUrlFunction
|
* @return {ol.TileUrlFunctionType} TileUrlFunction
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -154,6 +156,7 @@ ol.source.TileImage.prototype.handleTileChange_ = function(event) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the tile load function of the source.
|
||||||
* @param {ol.TileLoadFunctionType} tileLoadFunction Tile load function.
|
* @param {ol.TileLoadFunctionType} tileLoadFunction Tile load function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -165,6 +168,7 @@ ol.source.TileImage.prototype.setTileLoadFunction = function(tileLoadFunction) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the tile URL function of the source.
|
||||||
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
* @param {ol.TileUrlFunctionType} tileUrlFunction Tile URL function.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ ol.source.Tile.prototype.getTile = goog.abstractMethod;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the tile grid of the tile source.
|
||||||
* @return {ol.tilegrid.TileGrid} Tile grid.
|
* @return {ol.tilegrid.TileGrid} Tile grid.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ goog.inherits(ol.source.TileUTFGrid, ol.source.Tile);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the template from TileJSON.
|
||||||
* @return {string|undefined} The template from TileJSON.
|
* @return {string|undefined} The template from TileJSON.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ ol.source.TileVector.prototype.getExtent = goog.abstractMethod;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the features of the TileVector source.
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ ol.source.TileWMS.prototype.resetCoordKeyPrefix_ = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URL to use for requests.
|
||||||
* @param {string|undefined} url URL.
|
* @param {string|undefined} url URL.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -339,6 +340,7 @@ ol.source.TileWMS.prototype.setUrl = function(url) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URLs to use for requests.
|
||||||
* @param {Array.<string>|undefined} urls URLs.
|
* @param {Array.<string>|undefined} urls URLs.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ ol.source.WMTS.prototype.getDimensions = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the image format of the WMTS source.
|
||||||
* @return {string} Format.
|
* @return {string} Format.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -242,6 +243,7 @@ ol.source.WMTS.prototype.getKeyZXY = function(z, x, y) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the layer of the WMTS source.
|
||||||
* @return {string} Layer.
|
* @return {string} Layer.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -251,6 +253,7 @@ ol.source.WMTS.prototype.getLayer = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the matrix set of the WMTS source.
|
||||||
* @return {string} MatrixSet.
|
* @return {string} MatrixSet.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -260,6 +263,7 @@ ol.source.WMTS.prototype.getMatrixSet = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the style of the WMTS source.
|
||||||
* @return {string} Style.
|
* @return {string} Style.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -269,6 +273,7 @@ ol.source.WMTS.prototype.getStyle = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the version of the WMTS source.
|
||||||
* @return {string} Version.
|
* @return {string} Version.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ ol.source.XYZ.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URL to use for requests.
|
||||||
* @param {string} url URL.
|
* @param {string} url URL.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -78,6 +79,7 @@ ol.source.XYZ.prototype.setUrl = function(url) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Set the URLs to use for requests.
|
||||||
* @param {Array.<string>} urls URLs.
|
* @param {Array.<string>} urls URLs.
|
||||||
*/
|
*/
|
||||||
ol.source.XYZ.prototype.setUrls = function(urls) {
|
ol.source.XYZ.prototype.setUrls = function(urls) {
|
||||||
|
|||||||
Reference in New Issue
Block a user