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

GetLegendGraphic incorrect display error #7184

Open
mayleendv19 opened this issue Jun 6, 2024 · 0 comments
Open

GetLegendGraphic incorrect display error #7184

mayleendv19 opened this issue Jun 6, 2024 · 0 comments

Comments

@mayleendv19
Copy link

mayleendv19 commented Jun 6, 2024

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"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant