cgxp.plugins.QueryBuilder

ptype
cgxp_querier
class cgxp.plugins.QueryBuilder(config)

Example Use

Sample code showing how to add a QueryBuilder plugin to a gxp.Viewer, only for logged users:

new gxp.Viewer({
    ...
    tools: [
% if user:
    {
        ptype: 'cgxp_querier',
        outputTarget: "left-panel",
        events: EVENTS,
        mapserverproxyURL: "${request.route_url('mapserverproxy', path='')}",
        // don't work with actual version of mapserver, the proxy will limit to 200
        // it is intended to be reactivated this once mapserver is fixed
        srsName: 'EPSG:21781',
        featureTypes: ['layer1', 'layer2']
    }
% endif
    ]
    ...
});

Config Options

Configuration properties.

events

Ext.util.Observable

featureTypes

Array(String) The name of the mapserver layers

layerText

String Label for the layer chooser (i18n)

mapserverproxyURL

String url of the mapserver proxy

matchCase

Boolean the matchCase WFS/GetFeature query argument.

maxFeatures

Int Limit of features returned by mapserver

options

Json Object parameters for the panel

querierText

String Title for the panel (i18n)

srid

String projection EPSG code, for example EPSG:21781

Table Of Contents

Previous topic

cgxp.plugins.Profile

Next topic

cgxp.plugins.Redlining

This Page