Add the renderer type to generic layer template variables

This commit is contained in:
Tim Schaub
2021-11-18 10:15:55 -07:00
parent 224f4c5c7f
commit 6f80ba93c8
13 changed files with 21 additions and 52 deletions
+1 -5
View File
@@ -12,7 +12,7 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
* options means that `title` is observable, and has get/set accessors.
*
* @template {import("../source/Vector.js").default} VectorSourceType
* @extends {BaseVectorLayer<VectorSourceType>}
* @extends {BaseVectorLayer<VectorSourceType, CanvasVectorLayerRenderer>}
* @api
*/
class VectorLayer extends BaseVectorLayer {
@@ -23,10 +23,6 @@ class VectorLayer extends BaseVectorLayer {
super(opt_options);
}
/**
* Create a renderer for this layer.
* @return {import("../renderer/Layer.js").default} A layer renderer.
*/
createRenderer() {
return new CanvasVectorLayerRenderer(this);
}