Merge pull request #11948 from simonseyock/vector-source-load-events-doc
Improve layer typings
This commit is contained in:
@@ -37,7 +37,8 @@ import Layer from './Layer.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
* @extends {Layer<import("../source/Image.js").default>}
|
* @template {import("../source/Image.js").default} ImageSourceType
|
||||||
|
* @extends {Layer<ImageSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class BaseImageLayer extends Layer {
|
class BaseImageLayer extends Layer {
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ import {assign} from '../obj.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
* @extends {Layer<import("../source/Tile.js").default>}
|
* @template {import("../source/Tile.js").default} TileSourceType
|
||||||
|
* @extends {Layer<TileSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class BaseTileLayer extends Layer {
|
class BaseTileLayer extends Layer {
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ const INTERVALS = [
|
|||||||
* Note that the view projection must define both extent and worldExtent.
|
* Note that the view projection must define both extent and worldExtent.
|
||||||
*
|
*
|
||||||
* @fires import("../render/Event.js").RenderEvent
|
* @fires import("../render/Event.js").RenderEvent
|
||||||
|
* @extends {VectorLayer<import("../source/Vector.js").default>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class Graticule extends VectorLayer {
|
class Graticule extends VectorLayer {
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ const DEFAULT_GRADIENT = ['#00f', '#0ff', '#0f0', '#ff0', '#f00'];
|
|||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
* @fires import("../render/Event.js").RenderEvent
|
* @fires import("../render/Event.js").RenderEvent
|
||||||
|
* @extends {VectorLayer<import("../source/Vector.js").default>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class Heatmap extends VectorLayer {
|
class Heatmap extends VectorLayer {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import CanvasImageLayerRenderer from '../renderer/canvas/ImageLayer.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
|
* @template {import("../source/Image.js").default} ImageSourceType
|
||||||
|
* @extends {BaseImageLayer<ImageSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class ImageLayer extends BaseImageLayer {
|
class ImageLayer extends BaseImageLayer {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
|
* @template {import("../source/Tile.js").default} TileSourceType
|
||||||
|
* @extends {BaseTileLayer<TileSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class TileLayer extends BaseTileLayer {
|
class TileLayer extends BaseTileLayer {
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
* @extends {BaseVectorLayer<import("../source/Vector.js").default>}
|
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||||
|
* @extends {BaseVectorLayer<VectorSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class VectorLayer extends BaseVectorLayer {
|
class VectorLayer extends BaseVectorLayer {
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ import {assign} from '../obj.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
|
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||||
|
* @extends {BaseVectorLayer<VectorSourceType>}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
class VectorImageLayer extends BaseVectorLayer {
|
class VectorImageLayer extends BaseVectorLayer {
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ import {parseLiteralStyle} from '../webgl/ShaderBuilder.js';
|
|||||||
* property on the layer object; for example, setting `title: 'My Title'` in the
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||||||
* options means that `title` is observable, and has get/set accessors.
|
* options means that `title` is observable, and has get/set accessors.
|
||||||
*
|
*
|
||||||
|
* @template {import("../source/Vector.js").default} VectorSourceType
|
||||||
|
* @extends {Layer<VectorSourceType>}
|
||||||
* @fires import("../render/Event.js").RenderEvent
|
* @fires import("../render/Event.js").RenderEvent
|
||||||
*/
|
*/
|
||||||
class WebGLPointsLayer extends Layer {
|
class WebGLPointsLayer extends Layer {
|
||||||
|
|||||||
Reference in New Issue
Block a user