Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
wms layer is added even if the the request fails #11575
When a WMS layer is added and the requests fails, the layer is added anyway in the legend. The result is that if the layer is not removed by hand from the legend, any action (zoom, pan, add/remove other layers) will produce the error shown when the initial request failed.
If the wms layer cannot be retrieved it should not be added to the legend.
I noticed this behavior when I mistakenly used the wrong URL while adding a new wms server connection:
The first URL gives a list of layers but a error is returned when you try to add them, still they are added to the legend.
Author Name: Giovanni Manghi (@gioman)
Well, the problem was then explained very bad. I will open a new ticket with a better description if and when I will encounter again the same problem.