terriajs icon indicating copy to clipboard operation
terriajs copied to clipboard

GetLegendGraphic incorrect display error

Open mayleendv19 opened this issue 1 month ago • 0 comments

I have tried to display the correct legend in terria But I still can't achieve it.

LINK: https://www.geoportaligm.gob.ec/terria#CA_BAHIA I have 5 groups of which there are 11 layers, 9 of them have general styles or legends and they are the ones that appear by default.

For example, in the city of Bahia, in the Soils category, the general legend is displayed. image

But I need a style defined for said city to appear as follows: image

Under the query: https://www.geoportaligm.gob.ec/igm_afc/igm_ca2022/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=v_suelo_a&style=stl_bahia_ttdp

This is my JSON file: CA_BAHIA_N.json

I tried to add the legend using a URL as follows but it reflects error: "legendUrls": { "mimeType": "image/png", "url": "https://www.geoportaligm.gob.ec/igm_afc/igm_ca2022/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=v_suelo_a&style=stl_bahia_ttdp" },

mayleendv19 avatar Jun 06 '24 15:06 mayleendv19