wiki:PluginsLayersManagement

>> Back to available plugins page

TOC?

Plugins concerning layers management

Dynamic layer sample

Not yet documented...


Layers selection

Description

Let user select layers from a pool to add to or remove from TOC.

How to use

Enable the plugin by adding a line in config_XXXXX.xml file:

<pmapper>
    <ini>
        <pmapper>
....
            <plugins>layerselect</plugins>
....
        </pmapper>
    </ini>
</pmapper>

Add the corresponding tool:

/**
 * Tool link elements
 */
PM.linksDefault = {
.....
    links: [
....
        {linkid:'layers', name:'Layers', run:'PM.Plugin.Layerselect.openDlg', imgsrc:'layers-bw.png'}
        
    ]
};

Specify categories and groups in config_XXXXX.xml file:

<pmapper>
    <ini>
....
        <pluginsConfig>
....
            <layerselect>
                <categories>
                    <category name="cat_admin">
                        <group>countries</group>
                        <group>admins</group>
                        <group>cities10000eu</group>
                        <group>urban</group>
                    </category>
                    <category name="cat_nature">
                        <group>rivers</group>
                        <group>corine</group>
                        <group>water</group>
                    </category>
                    <category name="cat_infrastructure">
                        <group>roads</group>
                        <group>railroad</group>
                    </category>
                    <category name="cat_raster">
                        <group>dem</group>
                        <group>jpl_wms_global_mosaic</group>
                    </category>
                </categories>
            </layerselect>
....
        </pluginsConfig>
    </ini>
</pmapper>

WMS Client

Not yet documented...

Last modified 7 years ago Last modified on Oct 7, 2010, 1:15:07 PM