wmsBrowser plugin allows you to save WMS servers properties locally to preview
their layers, manage these servers (upgrade, delete, refresh properties,
disconnect a remote server that is no more avaible, ...), add a chosen WMS
layer to the map and delete all added WMS layers.
To have the plugin working, you must install Chameleon XML parser first, load plugin and set a few configuration files parameters.
- Download Chameleon extension package from http://cartoweb.org/downloads.html#chameleon_ext.
- Uncompress the archive and follow steps described in
chameleon/ext/README.txtfile to compile it. - Copy
chameleon/ext/php/modules/chameleon.soextension to your php extensions directory and load it in your php.ini.
Tip
If using Debian or Ubuntu OS, you may install our precompiled package:
apt-get install php5-chameleon
See Appendix A, Mapserver Debian Installation for instructions about apt.
Warning
If your PHP isn't running as CGI, don't forget to restart your web server.
To activate the plugin, load mapOverlay and wmsBrowser plugins from both
CartoClient and CartoServer configuration files:
client_conf/client.ini and
server_conf/"mapId"/"mapId".ini. For instance:
loadPlugins = mapOverlay, wmsBrowser
To insert a WMS layer on the map, you must specify after which mapfile layer you want to 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.