Select to view content in your preferred language

ILegendSupport for WmsLayer

1770
6
03-17-2011 10:01 AM
FredericGoulet
Emerging Contributor
Hi,

Is there any plan to implement ILegendSupport in a future version of the WmsLayer class ?

I wonder if a call to WMS GetLegendGraphic inside the QueryLegendInfos method would do the trick.

I would like to add my vote for such a feature.


Thanks
0 Kudos
6 Replies
DominiqueBroux
Esri Frequent Contributor
Is there any plan to implement ILegendSupport in a future version of the WmsLayer class ?

It's not planned in a near future version but we will consider it for a future version.

Thanks for suggesting this enhancement.
0 Kudos
FredericGoulet
Emerging Contributor
Ok thanks, meanwhile I will look if I am able to implement this myself.


Frédéric
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Hi Frédéric,

I prototyped a version of the WmsLayer class implementing ILegendSupport.
It also implementing ISublayerVisibility supports, so the sublayer visibilities can be turned on/off from the legend(Live Sample).

I attached the code to this thread, if you have any opportunity to test it, let me know the result .
0 Kudos
AlexanderKhoroshun
Deactivated User
I attached the code to this thread, if you have any opportunity to test it, let me know the result .


Dominique, sorry, but I can't see the attachment.
0 Kudos
DominiqueBroux
Esri Frequent Contributor

Dominique, sorry, but I can't see the attachment.

Oups, looks like I forgot it
0 Kudos
AlexanderKhoroshun
Deactivated User
Dominique , thanks a lot!
0 Kudos