Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGLVectorLayerRenderer stroke-line-dash can't use ExpressionValue #15640

Open
CzRger opened this issue Mar 14, 2024 · 0 comments
Open

WebGLVectorLayerRenderer stroke-line-dash can't use ExpressionValue #15640

CzRger opened this issue Mar 14, 2024 · 0 comments
Labels

Comments

@CzRger
Copy link

CzRger commented Mar 14, 2024

Describe the bug
ol: 9.0.0

class WebGLLineLayer extends layer.Layer {
createRenderer() {
return new WebGLVectorLayerRenderer(this, {
disableHitDetection: false,
style: {
'stroke-color': ['', ['get', 'lineColor'], [220, 220, 220]],
'stroke-width': ['get', 'lineWidth'],
'stroke-line-dash': ['
', ['get', 'lineDasharray'], [15, 15]],
},
});
}
}
OR 'stroke-line-dash': ['get', 'lineDasharray'],

To Reproduce
image

Expected behavior
’stroke-line-dash‘ can get value by every data

@CzRger CzRger added the bug label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant