The WmsBrowser plugin is now outdated and has been replaced by the WmsBrowserLight plugin, which do NOT require Chameleon XML parser
WmsBrowser plugin allows you to save WMS servers properties locally to preview its layers, manage these servers (upgrade, delete, refresh properties, disconnect it if remote server isn't avaible, ...), add a choosen WMS layer to the map and delete all added WMS layers.
To install it, you have to install Chameleon XML parser first, load plugin and set a few configuration files parameters.
Install Chameleon XML Parser
Download Chameleon extension package from http://cartoweb.org/downloads.html.
- Uncompress the archive and follow steps described in chameleon/ext/README.txt file to compile it.
- Copy chameleon/ext/php/modules/chameleon.so extension to your php extensions directory and load it in your php.ini.
If your PHP isn't running as CGI, don't forget to restart your web server.
loadPlugins = mapOverlay, wmsBrowser
Position to Which Insert WMS Layers
To insert a WMS layer on the map, you must specify after which mapfile layer you want insert it. The layer will be added after the last added WMS layer or after this mapfile layer (if no WMS layer has ever been added).
To do so, in server_conf/<mapId>/wmsBrowser.ini, specify the mapfile layer name in the wmsInsertLayerAfter parameter.
Perform Added WMS Layers Appearance in the Layers List
If you want to perform added WMS layers appearance in the layers list, you still have to affect them a parent LayerGroup. Specify, in client_conf/layers.ini, the LayerGroup name in the userLayerGroup parameter (default is root).