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

View File

@@ -259,7 +259,7 @@ function parseStyle(style, bandCount) {
* property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors.
*
* @extends BaseTileLayer<SourceType>
* @extends BaseTileLayer<SourceType, WebGLTileLayerRenderer>
* @api
*/
class WebGLTileLayer extends BaseTileLayer {
@@ -296,11 +296,6 @@ class WebGLTileLayer extends BaseTileLayer {
this.styleVariables_ = this.style_.variables || {};
}
/**
* Create a renderer for this layer.
* @return {import("../renderer/Layer.js").default} A layer renderer.
* @protected
*/
createRenderer() {
const source = this.getSource();
const parsedStyle = parseStyle(