On Fri, Jun 11, 2010 at 4:08 PM, Richard LEHAUT <[email protected]> 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 : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
