The
ogcLayerLoader
plugin allows user to add OGC layers such as WMS and WFS through a call by URL.
For exemple, using a simple URL, you could call your cartoweb project and add an OGC layer at startup.
Once the layer added, the coreplugin Layer will be called to update user layers. Added layer could then be used by other plugin in the project (legend, layer reorder, ...). This plugin is used by wmsBrowserLight and catalog to add OGC layers to the map.
To activate the plugin, load from both CartoClient and CartoServer configuration files:
client_conf/client.ini
and
server_conf/"mapId"/"mapId".ini
. For instance:
loadPlugins = mapOverlay, ogcLayerLoader
To do so, in server_conf/"mapId"/ogcLayerLoader.ini
, set the following parameters in the ini file of the plugin.
ogcInsertLayerAfter = raster ; raster is the name of the layer
To do so, in client_conf/layers.ini
, set the following parameters in the ini file of the layers coreplugin.
userLayerGroup = root ; root is the name of the layerGroup in which user layers will be added