[OpenLayers-Users] Mapserver WMS legend
Alberto Najera
anajera at bicimapas.com.mx
Tue May 15 16:45:09 PDT 2012
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
More information about the Users
mailing list