Wednesday, February 18, 2009

Default layers must be visible on map but not in legend/TOC

Default layers visible on map but not in legend/TOC ¶

If a layer should always be visible on the map but not selectable/visible in legend or TOC (e.g. copyright, north arrow, background image layer) the easiest solution is to define for the layer in the map file

STATUS DEFAULT

and don't reference the layer in the config.ini file. This way it is always drawn by Mapserver logic and never switched off by p.mapper logic.

No comments:

Post a Comment

Followers