cgxp.plugins.Geonames

ptype
cgxp_geonames
class cgxp.plugins.Geonames(config)

Plugin to add a search field based on the geonames.org service. See http://www.geonames.org/export/geonames-search.html

Example Use

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

new gxp.Viewer({
    ...
    tools: [{
        ptype: "cgxp_geonames",
        actionTarget: "center.tbar",
        actionConfig: {
            width: 100
        },
        recenterZoom: 12
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Optional configuration of the ComboBox.

emptyText

String Text displayed when the search is triggered (i18n).

recenterZoom

Number Zoomlevel used when recentering on a result.

url

String URL of the geonames search service.

Table Of Contents

Previous topic

cgxp.plugins.FullTextSearch

Next topic

cgxp.plugins.GetFeature

This Page

Fork me on GitHub