cgxp.plugins.Profile

ptype
cgxp_profile
class cgxp.plugins.Profile(config)

This plugin provides an “Profile” button.

This plugin is based on the dygraph lib. This lib requires the following meta tag for IE:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">

See http://dygraphs.com/.

Example Use

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

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_profile',
        actionTarget: 'center.tbar',
        toggleGroup: 'maptools',
        serviceUrl: "${request.route_url('profile.json')}",
        csvServiceUrl: "${request.route_url('profile.csv')}",
        rasterLayers: ['mnt', 'mns']
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Configuration object for the action created by this plugin.

csvServiceUrl

String The url to the profile csv export service.

errorMsg

String The translated error message (i18n).

exportCsvText

String The translated “export as csv” text (i18n).

helpText

String The translated tool help html text (i18n).

markerStyle

Object The style to be applied to the marker when hovering the chart (optional).

nbPoints

Number The number of points to show in the charts (optional). Defaults to 100.

noDataValue

Number The number representing no data values in the raster layers. Default to null.

rasterLayers

Array(String) The list of raster layers.

serviceUrl

String The url to the profile service.

style

Object The style to be applied to the control vector layer (optional).

valuesProperty

String The property in which are stored the elevation values (optional). Defaults to ‘values’.

waitMsgText

String The loading message (i18n).

xLabelText

String The translated x label text (i18n).

yLabelText

String The translated y label text (i18n).

Table Of Contents

Previous topic

cgxp.plugins.Print

Next topic

cgxp.plugins.QueryBuilder

This Page

Fork me on GitHub