Open mayleendv19 opened 3 months ago
@mayleendv19
Have you got this working? I see that in your new CA_BAHIA.json
file you have changed the legends config to the following which looks correct to me and seems to be working the way you want.
"legends": [
{
"urlMimeType": "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=igm_ca22:stl_bahia_ttdp"
}
]
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.
But I need a style defined for said city to appear as follows:
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" },