Module type for ol.layer.Layer
This commit is contained in:
@@ -63,7 +63,7 @@ const BaseLayer = function(options) {
|
||||
* @private
|
||||
*/
|
||||
this.state_ = /** @type {module:ol/layer/Layer~State} */ ({
|
||||
layer: /** @type {ol.layer.Layer} */ (this),
|
||||
layer: /** @type {module:ol/layer/Layer~Layer} */ (this),
|
||||
managed: true
|
||||
});
|
||||
|
||||
@@ -106,9 +106,9 @@ BaseLayer.prototype.getLayerState = function() {
|
||||
|
||||
/**
|
||||
* @abstract
|
||||
* @param {Array.<ol.layer.Layer>=} opt_array Array of layers (to be
|
||||
* @param {Array.<module:ol/layer/Layer~Layer>=} opt_array Array of layers (to be
|
||||
* modified in place).
|
||||
* @return {Array.<ol.layer.Layer>} Array of layers.
|
||||
* @return {Array.<module:ol/layer/Layer~Layer>} Array of layers.
|
||||
*/
|
||||
BaseLayer.prototype.getLayersArray = function(opt_array) {};
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ LayerGroup.prototype.handleLayersRemove_ = function(collectionEvent) {
|
||||
|
||||
|
||||
/**
|
||||
* Returns the {@link module:ol/Collection~Collection collection} of {@link ol.layer.Layer layers}
|
||||
* Returns the {@link module:ol/Collection~Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
||||
* in this group.
|
||||
* @return {!module:ol/Collection~Collection.<ol.layer.Base>} Collection of
|
||||
* {@link ol.layer.Base layers} that are part of this group.
|
||||
@@ -162,7 +162,7 @@ LayerGroup.prototype.getLayers = function() {
|
||||
|
||||
|
||||
/**
|
||||
* Set the {@link module:ol/Collection~Collection collection} of {@link ol.layer.Layer layers}
|
||||
* Set the {@link module:ol/Collection~Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
||||
* in this group.
|
||||
* @param {!module:ol/Collection~Collection.<ol.layer.Base>} layers Collection of
|
||||
* {@link ol.layer.Base layers} that are part of this group.
|
||||
|
||||
@@ -14,7 +14,7 @@ import Layer from '../layer/Layer.js';
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.layer.Layer}
|
||||
* @extends {module:ol/layer/Layer~Layer}
|
||||
* @fires ol.render.Event
|
||||
* @param {olx.layer.ImageOptions=} opt_options Layer options.
|
||||
* @api
|
||||
|
||||
@@ -37,7 +37,7 @@ import SourceState from '../source/State.js';
|
||||
* Layers are usually added to a map with {@link ol.Map#addLayer}. Components
|
||||
* like {@link module:ol/interaction/Select~Select} use unmanaged layers
|
||||
* internally. These unmanaged layers are associated with the map using
|
||||
* {@link ol.layer.Layer#setMap} instead.
|
||||
* {@link module:ol/layer/Layer~Layer#setMap} instead.
|
||||
*
|
||||
* A generic `change` event is fired when the state of the source changes.
|
||||
*
|
||||
|
||||
@@ -16,7 +16,7 @@ import {assign} from '../obj.js';
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.layer.Layer}
|
||||
* @extends {module:ol/layer/Layer~Layer}
|
||||
* @fires ol.render.Event
|
||||
* @param {olx.layer.TileOptions=} opt_options Tile layer options.
|
||||
* @api
|
||||
|
||||
@@ -26,7 +26,7 @@ const Property = {
|
||||
* options means that `title` is observable, and has get/set accessors.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.layer.Layer}
|
||||
* @extends {module:ol/layer/Layer~Layer}
|
||||
* @fires ol.render.Event
|
||||
* @param {olx.layer.VectorOptions=} opt_options Options.
|
||||
* @api
|
||||
|
||||
Reference in New Issue
Block a user