cgxp.plugins.MouseCoordinates

ptype
cgxp_mousecoordinates
class cgxp.plugins.MouseCoordinates(config)

Provides an action to show map coordinates in an Ext toolbar.

Example Use

Sample code showing how to add a MouseCoordinates plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_mousecoordinates',
        actionTarget: 'center.bbar',
        controlConfig: {
            numDigits: 6,
            prefix: 'Lon: ',
            separator: ', lat: ',
            displayProjection: "EPSG:4326"
        }
    }]
    ...
});

Config Options

Configuration properties.

controlConfig

Object Optional parameter containing an <OpenLayers.Control.MousePosition> config.

numDigits

Integer Number of digits shown after the decimal mark.

separator

String Text shown between the coordinates (i18n).

Public Methods

Public methods.

MouseCoordinates.addActions()

Table Of Contents

Previous topic

cgxp.plugins.ModalDisclaimer

Next topic

cgxp.plugins.MyPosition

This Page