Shorter module paths for default exports
This commit is contained in:
@@ -24,7 +24,7 @@ import SourceState from '../source/State.js';
|
||||
* visible.
|
||||
* @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
|
||||
* be visible.
|
||||
* @property {module:ol/source/Source~Source} [source] Source for this layer. If not provided to the constructor,
|
||||
* @property {module:ol/source/Source} [source] Source for this layer. If not provided to the constructor,
|
||||
* the source can be set by calling {@link ol.layer.Layer#setSource layer.setSource(source)} after
|
||||
* construction.
|
||||
*/
|
||||
@@ -32,7 +32,7 @@ import SourceState from '../source/State.js';
|
||||
|
||||
/**
|
||||
* @typedef {Object} State
|
||||
* @property {module:ol/layer/Layer~Layer} layer
|
||||
* @property {module:ol/layer/Layer} layer
|
||||
* @property {number} opacity
|
||||
* @property {module:ol/source/Source~State} sourceState
|
||||
* @property {boolean} visible
|
||||
@@ -61,7 +61,7 @@ import SourceState from '../source/State.js';
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/layer/Base~BaseLayer}
|
||||
* @extends {module:ol/layer/Base}
|
||||
* @fires module:ol/render/Event~RenderEvent
|
||||
* @param {module:ol/layer/Layer~Options} options Layer options.
|
||||
* @api
|
||||
@@ -142,13 +142,15 @@ Layer.prototype.getLayerStatesArray = function(opt_states) {
|
||||
|
||||
/**
|
||||
* Get the layer source.
|
||||
* @return {module:ol/source/Source~Source} The layer source (or `null` if not yet set).
|
||||
* @return {module:ol/source/Source} The layer source (or `null` if not yet set).
|
||||
* @observable
|
||||
* @api
|
||||
*/
|
||||
Layer.prototype.getSource = function() {
|
||||
const source = this.get(LayerProperty.SOURCE);
|
||||
return /** @type {module:ol/source/Source~Source} */ (source) || null;
|
||||
return (
|
||||
/** @type {module:ol/source/Source} */ (source) || null
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -195,7 +197,7 @@ Layer.prototype.handleSourcePropertyChange_ = function() {
|
||||
*
|
||||
* To add the layer to a map and have it managed by the map, use
|
||||
* {@link ol.Map#addLayer} instead.
|
||||
* @param {module:ol/PluggableMap~PluggableMap} map Map.
|
||||
* @param {module:ol/PluggableMap} map Map.
|
||||
* @api
|
||||
*/
|
||||
Layer.prototype.setMap = function(map) {
|
||||
@@ -226,7 +228,7 @@ Layer.prototype.setMap = function(map) {
|
||||
|
||||
/**
|
||||
* Set the layer source.
|
||||
* @param {module:ol/source/Source~Source} source The layer source.
|
||||
* @param {module:ol/source/Source} source The layer source.
|
||||
* @observable
|
||||
* @api
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user