Renaming fill and stroke attributes and shaders

This commit is contained in:
Tim Schaub
2022-07-21 13:30:22 -07:00
parent f21dd84c91
commit bd9e73a534
3 changed files with 46 additions and 48 deletions

View File

@@ -16,7 +16,7 @@ class WebGLLayer extends Layer {
createRenderer() {
return new WebGLVectorLayerRenderer(this, {
className: this.getClassName(),
polygonShader: {
fill: {
attributes: {
[DefaultAttributes.COLOR]: function (feature, properties) {
const color = asArray(properties.COLOR || '#eee');
@@ -28,7 +28,7 @@ class WebGLLayer extends Layer {
},
},
},
lineStringShader: {
stroke: {
attributes: {
[DefaultAttributes.COLOR]: function (feature, properties) {
const color = [...asArray(properties.COLOR || '#eee')];