[Users] How to add event listener to the legend entry in legend panel

Yingqi Tang anakintang at gmail.com
Tue Aug 24 01:58:28 CEST 2010


Hi,

Is there any example or doc demonstrating how to add event listener to
legend entry of GeoExt legend panel? For example, I saw in the source code
of VectorLegend.js there are events like "titleclick", "symbolclick",
...etc. and I assume that's where you can add callback when a legend title
or symbol is clicked. The existing example only shows how to add a legend
panel so it's not obvious to me how to add event listener through
LegendPanel?

Does one have to create legend using VectorLegend directly to manipulate
those events?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100823/3b4710d0/attachment.htm 


More information about the Users mailing list