terrabrasilis / webmap

Terrabrasilis WebMap for exploring the deforestation data from GeoServices.
http://terrabrasilis.dpi.inpe.br/app/map/deforestation
GNU General Public License v3.0
4 stars 3 forks source link

Displaying incorrect map legend #40

Closed andre-carvalho closed 4 years ago

andre-carvalho commented 4 years ago

Reproduction steps:

Open the deforestation map, activate the Pantanal layer group, activate Annual Deforestation and open the legend tab. The map legend shown is the annual deforestation of the cerrado, not the Pantanal.

Solution: Include the workspace when obtaining the map legend using the style name.

Right GetLegendGraphic example: http://terrabrasilis.dpi.inpe.br/geoserver/ows?request=GetLegendGraphic&format=image/png&width=20&height=20&layer=prodes-pantanal:yearly_deforestation&service=WMS&style=prodes-pantanal:yearly_deforestation_pt-br

andre-carvalho commented 4 years ago

Fixed in the prodes-amz-2019 branch. Missing the merge with the master.

680df786c429da705fda4f8591cdab35b25e494e