Closed raitisbe closed 2 years ago
Describe the bug The problem stems from renderer.setStyle(styleItem); line, where setStyle only accepts an OlStyle object, not an array or function. In that case catch block is executed, the promise is rejected and no legend is generated.
renderer.setStyle(styleItem);
setStyle
catch
To Reproduce Steps to reproduce the behavior:
Go to https://geostyler.github.io/geostyler-demo/
Add an additional Icon symbolizer to the existing Mark symbolizer
Expand Legend tab
Set some attribute for Mark symbolizer, radius for example, so the icon gets regenerated:
See error in console and empty legend graphics on the right side:
Expected behavior getRuleIcon function should return an icon by combining the multiple OlStyles and generating a composite icon such as:
Screenshots See above
Desktop (please complete the following information):
Thanks for the report. I'll have a look at it.
Bug
Describe the bug The problem stems from
renderer.setStyle(styleItem);
line, wheresetStyle
only accepts an OlStyle object, not an array or function. In that casecatch
block is executed, the promise is rejected and no legend is generated.To Reproduce Steps to reproduce the behavior:
Go to https://geostyler.github.io/geostyler-demo/
Add an additional Icon symbolizer to the existing Mark symbolizer
Expand Legend tab
Set some attribute for Mark symbolizer, radius for example, so the icon gets regenerated:
See error in console and empty legend graphics on the right side:
Expected behavior getRuleIcon function should return an icon by combining the multiple OlStyles and generating a composite icon such as:
Screenshots See above
Desktop (please complete the following information):