wiki:AvailablePlugins

Version 5 (modified by traffin, 11 years ago) (diff)

orthography

TOC?

Available plugins

Coordinates

Export

Plugin to export query results to various formats

It adds export radio buttons to query result display. Currently implemented format: XLS, PDF, CSV.

Export to XLS requires the installation of the PEAR modules Spreadsheet_Excel_Writer and OLE (see here for details).

Scalebar

DHTML scalebar based on a library from Tim Schaub of CommEn Space.

Requires 2 DIV's in the map.phtml, like

    <div id="scaleReference">
        <div id="scalebar"></div>
    </div>

Style of the scalebar can be defined via CSS file.

Transparency

Map Selector

This plugins adds a select box to let user swap to another map file configuration. It uses the function to load different config files via URL, like http://www.myurl.org?config=xyz

It requires the definition of pmMapSelectSettings in /config/common/js_config.php :

var pmMapSelectSettings = { displayText:localeList['Select Theme'],
                            configList:{'default':"Map Default", 
                                        'dev':"Map Dev"
                                       }, 
                            divId:"north",
                            keepSession:true
                           };
                           
displayText: Text to show before checkbox 
configList:  contains key:value pairs, 
             key = definition of the config (corresponds to 'config_...ini' file), 
             value = the text displayed in the GUI
divId: Id of DOM element where to add the select box
keepSession: boolean,  
             true: keep session id, reload map with current extent

Note : if you want to use keepSession:false, you should use session.use_cookies = 0 in you php configuration file.

Rounded Boxes

This is a small plugin, witch permit to draw "round corners". It uses the "jQuery corner" plugin.

Sometimes, in Internet Explorer 6, some of those corners are hidden by toolbars. To show them, you may need to move a little bit the bars...

Informations about groups / layers

Display informations for each group or layer from the mapfile. For instance, if you use grpInfoLink with value 1 or 2 in your configuration file, when clicking on a group name or on the associated icon, a dynamic window will appear and display the long description about this group.

Activation

To activate this plugin, simply add "infos" in your plugin list. If you don't specify the infosMetadata in your configuration file, the MATADATA fiel named DESCRIPTION will be used.

Customize your informations

Simply specify infosMetadata = "MY_LONG_DESCRIPTION" to use the METADATA field named MY_LONG_DESCRIPTION for instance.

You can use HTML syntax in this field : For example, by adding the following code in the METADATA of the layer named "Cities" in the pmapper_demo.map :

        "MY_LONG_DESCRIPTION" "<p>This layer show european cities.</p>
        <table width='98%' cellspacing='0' cellpadding='0' class='legtab'>
                <tbody>
                        <tr>                    
                                <td style='width: 18px;'>
                                        <img width='18' height='14' src='images/legend/cities10000eu_i0.png' alt='legend' style='width: 18px; height: 14px;'/>
                                </td>
                                <td><span id='spxg_cities10000eu00' class='vis'>> 1'000'000</span></td>
                        </tr>
                        <tr>                    
                                <td style='width: 18px;'><img width='18' height='14' src='images/legend/cities10000eu_i1.png' alt='legend'/></td>
                                <td><span id='spxg_cities10000eu01' class='vis'>500'000 - 1'000'000</span></td>         
                        </tr>
                        <tr>    
                                <td style='width: 18px;'><img width='18' height='14' src='images/legend/cities10000eu_i2.png' alt='legend'/></td>
                                <td><span id='spxg_cities10000eu02' class='vis'>100'000 - 500'000</span></td>
                        </tr>
                        <tr>
                                <td style='width: 18px;'><img width='18' height='14' src='images/legend/cities10000eu_i3.png' alt='legend'/></td>
                                <td><span id='spxg_cities10000eu03' class='vis'>50'000 - 100'000</span></td>
                        </tr>
                        <tr>
                                <td colspan='2'><span>...</span></td>
                        </tr>
                </tbody>
        </table>
        <br />....."

you will automatically obtain : plugin_infos_output.png

Themes and views

Soon available...

Search Tool

Allow to use search with a button in the toolbar. By clicking this button, the search box will appear in the mapToolArea.

Activation

To activate this plugin, simply add "searchtool" in your plugin list. No additional parameters.

CSS issue

Maybe you will need to modify your CSS properties, like for instance :

#mapToolArea {
	height: 25px;
	text-align: left;
}
.pm_searchcont {
	position: relative;
}

Legend only

Soon available...

Geo-statistic

Soon available...

Eye Candy

Soon available...

FishEye

HighLight