Hi Tom, This would be very easy, just similar changes in GeoExt widget/LegendPanel.js which I could provide a GitHub patch, but maybe one of the GeoExtd devs on this list has views on this. OMO my solution could be cleaned somewhat in dealing with ExtJS component lifecycle events. best, Just
On 24-05-12 12:02, Thomas Colley wrote: > Hi Just > > This looks like exactly what I wanted to do. > > Would it be easy to implement this just in GeoExt? I haven't used Heron > at all. > > Thanks > > Tom > > On 24-05-12 09:56, Just van den Broecke wrote: > >> I got much further in nailing down the issue: GeoExt will > prefetch/preload Legends, WMS Legends via GetLegendGraphic, for all > Layers where the "hideInLegend" record item is false/undefined, thus > even if the Layer is not> > visible. > >> I have fixed this and made this behaviour configurable via a > "prefetchLegends" property for my class that derives from GeoExt > LegendPanel. Also "hideInLegend" gets set in a Layer record when set for > a Layer. > >> See the code at: >> > http://code.google.com/p/geoext-viewer/source/browse/trunk/heron/lib/wid > gets/LayerLegendPanel.js >> (Heron MC is a framework on top of GeoExt). Maybe the fix can be > cleaned some, but for now this works. If found useful I may add this > fix/feature to GeoExt via GitHub pull. > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
