On Thursday, May 24, 2012, Just van den Broecke wrote: > Hi, > > 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/widgets/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.
Hi. I think it would be a valuable addition. prefetchLegends should default to false in my opinion. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
