[Users] GeoExt.LegendPanel and TYPE RASTER
Eric Lemoine
eric.lemoine at camptocamp.com
Fri Jun 11 21:18:41 CEST 2010
On Fri, Jun 11, 2010 at 4:08 PM, Richard LEHAUT
<richard.lehaut at gmail.com> wrote:
> Hello
>
> For the legend of a raster layer, I want to show the creation date of the
> layer.
>
> For example the raster:
> LAYER # Photo
> NAME "ortho"
> STATUS ON
> TYPE RASTER
> TILEINDEX "ref/ign/ortho.shp"
> OFFSITE 255 255 255
> #MAXSCALEDENOM 40000
> TILEITEM "location"
> PROJECTION
> "init=epsg:27572"
> END
> METADATA
> "wms_title" "Ortho dernière génération"
> "wms_srs" "EPSG:27572"
> END
> END
>
> var ccORTHO = new OpenLayers.Layer.WMS(
> "ortho",
> config.tc_server,
> {layers: 'ortho', format: 'image/png'},
> {isBaseLayer: false,
> projection:"EPSG:27572",
> reproject: false }
> );
> map.addLayer(ccORTHO);
>
>
> I want to get
> Ortho
> Calvados 2001
> Channel 2006
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,
--
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