Openlayers and GeoExt for producing a web map. The map has a legend panel generated by GeoExt. By default, GeoExt grabs the details of every layers from the map and create a legend for all the layers. However, I would like to exclude some of the layers to be displayed from the legend, what should I do to achieve this?
legendPanel = new GeoExt.LegendPanel({
map: map,
title: 'Legend Panel',
renderTo:'description',
border: false,
autoScroll: true,
defaults: {
style: 'padding:5px',
baseParams: {
FORMAT: 'image/png',
LEGEND_OPTIONS: 'forceLabels:on;fontName=Verdana;fontSize:11'
}
}
});
Thanks!