I’m having the following problem rendering a legend using WMS service.
I created a layer that shows water bodies.
I added the legend definition to the advanced section of the Layer configuration
“legend”: {
“type”: “discrete”,
“items”: [
{
“color”: “#0000FE”,
“label”: “Cuerpos de Agua”
}
]
}
When rendering the legend it seems to be a problem:
this seems to indeed be a bug that happens when the label doesn’t have enough space.
To avoid it for now, make sure that the width is large enough, so that both the color and the label have enough space. You can also set only width or only height in the request - but in this case the other dimension is automatically set to the optimal value, so it might not be usable if you need to have both of the dimensions strictly set.
Thanks for reporting this. I will let you know when it gets fixed.
Please take in account that I’m using creodias WMS service, and not the standard sentinel hub WMS (see URL), in case this needs an extra deployment step.