Add background to MapboxVector layer

This commit is contained in:
Andreas Hocevar
2021-11-19 17:47:59 +01:00
parent 79285ab7dd
commit d4cc76f3f1
5 changed files with 151 additions and 13 deletions

View File

@@ -42,6 +42,11 @@ class RenderFeature {
* @param {number|string|undefined} id Feature id.
*/
constructor(type, flatCoordinates, ends, properties, id) {
/**
* @type {import("../style/Style.js").StyleFunction|undefined}
*/
this.styleFunction;
/**
* @private
* @type {import("../extent.js").Extent|undefined}
@@ -259,10 +264,10 @@ class RenderFeature {
}
/**
* @return {undefined}
* @return {import('../style/Style.js').StyleFunction|undefined} Style
*/
getStyleFunction() {
return undefined;
return this.styleFunction;
}
/**