[Users] GeoExt.LegendPanel and TYPE RASTER
Eric Lemoine
eric.lemoine at camptocamp.com
Sat Jun 12 10:59:10 CEST 2010
On Friday, June 11, 2010, Richard LEHAUT <richard.lehaut at crpf.fr> wrote:
> Eric Lemoine a écrit :
>
> Hi
>
> I'm not sure I understand your question. Why don't you use "Ortho",
> "Calvados 2001", and "Channel 2006" as the names of your OpenLayers
> layers? The legend panel will use these names as the labels.
>
> Cheers,
>
>
>
> Hi,
>
> There is a single layer openlayer, it's Ortho.
> 2001 Calvados, Orne, 2008, is information I want displayed under the layer name. To be more precise, it's the date of shooting aerial photography. The information at this time is recorded anywhere.
>
> I hope this is clearer.
Yes, sorry I didn't understand you the first time.
So I guess you'd like to use HTML (e.g. Ortho.<br>2001 Calvados.) in
the layer's name and have GeoExt render this HTML for the layer
labels.
I haven't actually tested that myself, but looking at the code I think
it won't work. This is because GeoExt.LayerLegend uses the "text"
property as opposed to the "html" property when it creates
Ext.form.Label objects. See [*]. I'm curious to know if we could use
"html" instead of "text" in GeoExt.
Cheers,
[*] <http://trac.geoext.org/browser/core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js#L54>
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list