Added generic source option to layer option types
This commit is contained in:
committed by
Andreas Hocevar
parent
8520a18eae
commit
a211666fd8
@@ -7,6 +7,7 @@ import {assign} from '../obj.js';
|
||||
import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
|
||||
|
||||
/**
|
||||
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||
* @typedef {Object} Options
|
||||
* @property {import('../style/literal.js').LiteralStyle} style Literal style to apply to the layer features.
|
||||
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
||||
@@ -26,7 +27,7 @@ import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
|
||||
* visible.
|
||||
* @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
|
||||
* be visible.
|
||||
* @property {import("../source/Vector.js").default} [source] Source.
|
||||
* @property {VectorSourceType} [source] Source.
|
||||
* @property {boolean} [disableHitDetection=false] Setting this to true will provide a slight performance boost, but will
|
||||
* prevent all hit detection on the layer.
|
||||
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
||||
@@ -73,7 +74,7 @@ import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
|
||||
*/
|
||||
class WebGLPointsLayer extends Layer {
|
||||
/**
|
||||
* @param {Options} options Options.
|
||||
* @param {Options<VectorSourceType>} options Options.
|
||||
*/
|
||||
constructor(options) {
|
||||
const baseOptions = assign({}, options);
|
||||
|
||||
Reference in New Issue
Block a user