>> Back to available plugins page

Plugins concerning the User Interface (UI)

Rounded boxes

Description

This small plugin add styled corners to the UI.

How to use

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

<pmapper>
    <ini>
        <pmapper>
....
            <plugins>roundedboxes</plugins>
....
        </pmapper>
    </ini>
</pmapper>

Scale bar

Description

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

How to use

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

<pmapper>
    <ini>
        <pmapper>
....
            <plugins>scalebar</plugins>
....
        </pmapper>
    </ini>
</pmapper>

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

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

Style of the scale bar can be defined via CSS file.


Transparency 2

Description

Add a slider at the right side of each layer / group of layers in the Table Of Contents. The sliders could represent either transparency or opacity percentage.

Dependencies

Transparency plugin have to be present im p.mapper installation, but not necessarily activated.

How to use

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

<pmapper>
    <ini>
        <pmapper>
....
            <plugins>transparency2</plugins>
....
        </pmapper>
    </ini>
</pmapper>

Specify if sliders have to represent opacity or transparency by adding in config_XXXXX.xml file:

<pmapper>
    <ini>
....
        <pluginsConfig>
....
            <transparency2>
                <useOpacity>off</useOpacity>
            </transparency2>
....
        </pluginsConfig>
    </ini>
</pmapper>

TO DO

Add tooltips

Unit and projection

Description

Display unit and projection information near coordinates.

How to use

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

<pmapper>
    <ini>
        <pmapper>
....
            <plugins>unitAndProj</plugins>
....
        </pmapper>
    </ini>
</pmapper>

Set plugin configuration by adding in config_XXXXX.xml file:

</pmapper>
    </ini>
...
        </pluginsConfig>
...
            <unitAndProj>
                <!-- Define available projections -->
                <!--
                    If coordinates plugin is activated before this one,
                    man can use an empty <projections> tag to use its projections.
                -->
                <projections>
                    <prj name="lat/lon WGS84">
                        <definition>init=epsg:4326</definition>
                    </prj>
                    <prj name="UTM32">
                        <definition>init=epsg:32632</definition>
                    </prj>
                    <prj name="WGS 84">
                        <definition>init=epsg:4326</definition>
                    </prj>
                    <prj name="Lambert 93">
                        <definition>init=epsg:2154</definition>
                    </prj>
                </projections>
            </unitAndProj>
...
        </pluginsConfig>
    </ini>
</pmapper>

Add default translation from plugins/unitAndProj/install/language_en-part.php to incphp/locale/language_en.php. You can add translations for other language (French is provided) by doing the same.


Attachments