Hi,

Don't forget to include the list in your reply.

See here :
https://github.com/geoext/geoext/blob/1.1/lib/GeoExt/widgets/LegendPanel.js#L28
at line 28: "The LegendPanel will include legends for all the layers in
the ``layerStore`` it is configured with, unless the layer is configured
with``displayInLayerSwitcher: false``, or a layer record has a
``hideInLegend`` field with a value of ``true``...

  So your layer might not be included in the legend because it has 
displayInLayerSwitcher set to false.

HTH,

Alexandre


On 13-01-23 09:14 AM, Luís de Sousa wrote:
> Sure, it is below. Thanks,
>
> Luís
>
> #####################################################
>
>       var ten_t = new OpenLayers.Layer.WMS(
>               "TEN-T",
>         "http://myserver/cgi-bin/mapserv?map=/var/www/MapFiles/TEN-T.map&";,
>               {layers: [
>                       "Railways",
>                       "Roads",
>                       "InlandWaterWays",
>                       "Airports",
>                       "RailTerminals",
>                       "Ports"],
>          transparent: true,
>          format: "image/png"},
>               {isBaseLayer: false,
>          buffer: 0,
>          displayInLayerSwitcher: false,
>          visibility: false}
>     );


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to