[Users] LegendPanel fires GetLegendGraphic requests for invisible Layers
Thomas Colley
it087 at neath-porttalbot.gov.uk
Thu May 24 12:02:31 CEST 2012
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.
More information about the Users
mailing list