Use type template for the source type of layers

This commit is contained in:
Frederic Junod
2019-01-28 15:33:29 +01:00
parent 53fc082fc2
commit 5318d52036
6 changed files with 12 additions and 40 deletions

View File

@@ -61,6 +61,8 @@ const Property = {
* property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors.
*
* @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType
* @extends {Layer<VectorSourceType>}
* @api
*/
class BaseVectorLayer extends Layer {
@@ -219,13 +221,4 @@ class BaseVectorLayer extends Layer {
}
/**
* Return the associated {@link module:ol/source/Vector vectorsource} of the layer.
* @function
* @return {import("../source/Vector.js").default} Source.
* @api
*/
BaseVectorLayer.prototype.getSource;
export default BaseVectorLayer;