Move olx.layer.BaseOptions to ol/layer/Base

This commit is contained in:
Roman Zoller
2018-03-22 17:20:24 +01:00
parent 00e79903fe
commit b99b19f876
3 changed files with 18 additions and 63 deletions

View File

@@ -7,6 +7,22 @@ import LayerProperty from '../layer/Property.js';
import {clamp} from '../math.js';
import {assign} from '../obj.js';
/**
* @typedef {Object} Options
* @property {number} [opacity=1] Opacity (0, 1).
* @property {boolean} [visible=true] Visibility.
* @property {ol.Extent} [extent] The bounding extent for layer rendering. The layer will not be
* rendered outside of this extent.
* @property {number} [zIndex=0] The z-index for layer rendering. At rendering time, the layers
* will be ordered, first by Z-index and then by position.
* @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
* visible.
* @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
* be visible.
*/
/**
* @classdesc
* Abstract base class; normally only used for creating subclasses and not
@@ -18,7 +34,7 @@ import {assign} from '../obj.js';
* @constructor
* @abstract
* @extends {module:ol/Object~BaseObject}
* @param {olx.layer.BaseOptions} options Layer options.
* @param {module:ol/layer/Base~Options} options Layer options.
* @api
*/
const BaseLayer = function(options) {