Select to view content in your preferred language

WMS Layer API support to get LegendURL

1351
4
12-02-2011 10:41 AM
PaigeBaldassaro1
Emerging Contributor
I can see where the WMSLayer constructor in the API takes a LegendURL parameter, but WMSLayerInfo class doesn't seem to return that same parameter. Is there a way using the Silverlight API to obtain the LegendURL?
Paige
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
At this time, the LegendURL is not publicly exposed.
Likely, there is workaround to get it by using the legend control but this is weird. You can also tweak by yourself the WMS sources that are on codeplex.

For a future version, we may consider to expose this property, what is your exact use case?
0 Kudos
PaigeBaldassaro1
Emerging Contributor
Technically, the use case is to simply be able to display a legend for the WMS layer.
Specifically, the sponsor has set a requirement to "support the LegendURL tag in the GetCapabilities call". I know I can write external JavaScript to make that call, but was hoping to be as pure Silverlight as possible.

Paige
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Technically, the use case is to simply be able to display a legend for the WMS layer.


And why not use the Legend control? From 2.3, it supports WMS layers.
0 Kudos
PaigeBaldassaro1
Emerging Contributor
Because the sponsor has made it a specific requirement to use LegendURL tag, unfortunately. Case of them knowing what they want, but not knowing how to get it. I will be making a case for the Legend control since it is the way it should be done, but it may or may not go through.

Thanks for your help.
Paige

And why not use the Legend control? From 2.3, it supports WMS layers.
0 Kudos