You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to read the response from a GetCapabilities that include a GetLegendGraphic in the Request. The ol.format.WMSCapabilities did not return that option in the Requests.
Currently, the ol/format/WMSCapabilites only parses the mandatory tags of the Capability.Request. https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/format/WMSCapabilities.js#L205 I need to be able to read the sld:GetLegendGraphic Request tag.
So for now, I reused some of the code from the WMSCapabilities and added the GetLegendGraphic in the REQUEST_PARSERS.
Is there a way to initialise the ol.format.WMSCapabilities to allow it to read SLD tags?
If not, is there a reason why? (Never got to it or prefer not to add the SLD format?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried to read the response from a GetCapabilities that include a GetLegendGraphic in the Request. The ol.format.WMSCapabilities did not return that option in the Requests.
Currently, the ol/format/WMSCapabilites only parses the mandatory tags of the Capability.Request. https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/format/WMSCapabilities.js#L205 I need to be able to read the sld:GetLegendGraphic Request tag.
So for now, I reused some of the code from the WMSCapabilities and added the GetLegendGraphic in the REQUEST_PARSERS.
Beta Was this translation helpful? Give feedback.
All reactions