Arlen,

Thank you.  I have some javascript experience and got almost all.  What I do
not clearly understand is how this statement:

document.layers.datalayer

is used in the s(radio) function. Can you explain please?


Alberto Najera
 

-----Mensaje original-----
De: Arlen Poort [mailto:[email protected]] 
Enviado el: martes, 15 de mayo de 2012 07:51 p.m.
Para: Alberto Najera
Asunto: Re: [OpenLayers-Users] Mapserver WMS legend

Hello Alberto,

All my legends are generated by MapServer. Try my code here:
http://mapserver.nrc-handelsblad.com/CBS.html

Best regards,

Arlen

2012/5/16 Alberto Najera <[email protected]>:
> Hello
>
> Is it possible to show in Openlayers a Mapserver generated legend for 
> a WMS layer? I have read it can be done with a getLegendGraphics 
> function but have not found how to apply it.
>
> How should a code like this one be modified to get the legend:
>
> var layerCam = new OpenLayers.Layer.WMS(
>                "Caminos",
>                "http://myserver/cgi-bin/mapserv?";,
>                {map: '/home/bicimapas/mapdata/Demo.map',
>                layers:'caminos', transparent: true}, 
> {isBaseLayer:false,
> displayInLayerSwitcher: false});
>
>
> I have searched but cannot find a clear response.
>
> Thanks
>
> Alberto Najera
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to