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

LegendGraphic doesn't show on layers that use "GetMap-url" parameter #1062

Closed
WCarlsson opened this issue Apr 25, 2022 · 1 comment · Fixed by #1074
Closed

LegendGraphic doesn't show on layers that use "GetMap-url" parameter #1062

WCarlsson opened this issue Apr 25, 2022 · 1 comment · Fixed by #1074
Assignees
Labels
module:client/core Core functionality (not a plugin)
Milestone

Comments

@WCarlsson
Copy link

On layers that use different url:s, see #345, for GetCapabilities and other requests the legendGraphic doesn´t show.

This seems to be because the GetLegendGraphic uses the wrong url for the request, for example:
Url: https://resource.sgu.se/service/wms/130/jordarter-25-100-tusen-fastmark
GetMap-url: https://maps3.sgu.se/geoserver/jord/ows
GetMap and GetFeatureInfo uses the GetMap url but getLegendGraphic uses the normal url.

Steps to reproduce the behavior:

  1. Set up a layer with different url:s
  2. Add layer to a map
  3. Expand to see legendGraphic
  4. See error

Expected behavior
Legend Graphic should show as intended

@jacobwod jacobwod changed the title LegendGraphic doesn´t show on layers that use "GetMap-url" parameter LegendGraphic doesn't show on layers that use "GetMap-url" parameter Apr 26, 2022
@Hallbergs Hallbergs self-assigned this May 4, 2022
@Hallbergs Hallbergs added the module:client/core Core functionality (not a plugin) label May 4, 2022
@Hallbergs Hallbergs added this to the 3.x milestone May 4, 2022
@Hallbergs Hallbergs linked a pull request May 4, 2022 that will close this issue
@Hallbergs Hallbergs modified the milestones: 3.x, 3.10 May 4, 2022
@Hallbergs
Copy link
Member

@WCarlsson would be great if you could make sure that the fix is working. (You can do the test when the release candidate for 3.10 is out).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:client/core Core functionality (not a plugin)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants