I have a big map consist of many scattered layers. To make loading faster, I have merge several layers into one shapefile (*.shp). So in total there are only around 5 layers in the each MAP file. BTW I am using mapserver + pmapper.
My method is by using a mapselector plugin to change map from a default map to several thematic maps.
My question is: How to limit the legend only to the displayed image, especially in print mode?
Because right now all legend in the layer shown, even when only small section of the map is shown, especially in print mode. So I want to show only related legend based on the displayed area.