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

Reply via email to