planetfederal / GeoExplorer

Notice: This application has been folded into the OpenGeo Suite repository
https://github.com/opengeo/suite/blob/dev/geoexplorer/README.md
BSD 3-Clause "New" or "Revised" License
78 stars 60 forks source link

GeoExplorer legend does not use workspace in request #28

Closed bosth closed 9 years ago

bosth commented 9 years ago

The legend in GeoExplorer does a GetLengendGraphic without specifying the workspace, so if there are two layers with the same name in different workspaces, the default workspace will be used even if the map is displaying the other layer.

bartvde commented 9 years ago

confirmed this is an issue indeed

bartvde commented 9 years ago

but this is really a GeoServer issue instead

http://sfmta.demo.opengeo.org/geoserver/wms?service=WMS&request=GetCapabilities

<LegendURL width="20" height="20">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://sfmta.demo.opengeo.org:80/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=states"/>
</LegendURL>

we just take it from there.

bosth commented 9 years ago

GeoServer ticket: http://jira.codehaus.org/browse/GEOS-6758