This repository was archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Nominatim GeoCoder Developer
offtherailz edited this page Sep 12, 2012
·
5 revisions
Include in buildjs these files:
gxp/src/script/widgets/NominatimGeocoderComboBox.jsgxp/src/script/plugins/NominatimGeocoder.js
{
"ptype":"gxp_nominatimgeocoder",
"outputConfig":{
"emptyText":"Nominatim GeoCoder",
"vendorOptions":{
"bounded":1,
"countrycodes":"it",
"addressdetails":0
},
"boundOption":"max"
},
"outputTarget":"paneltbar",
"index":26
}
-
ptype: ptype of the plugin -
outputConfig: specific configuration for the NominatimGeoCoderComboBox widget-
emptyTexttext to show when the search field is empty -
vendorOptions: options for the Nominatim request-
bounded: (0|1) limits the search to the viewbox (default 0).- 0: the viewbox is used as "favorite area", so first results are in this area
- 1: the viewbox is used to limit result. Out of this area there's not any result.
-
countrycodes: a list of countrycodes to limit search results (default empty) -
addressdetails: (0|1) to get additional details in results (not managed in UI,default to 0) -
polygon: (0|1) get geometry (not managed in UI,default to 0)
-
-
boundOption:(String) Options to set viewbox parameter(default to "max"). Allowed values are:- max : search in map max extent
- current: search in current extent
- config: gets the passed bounds option in geographic coordinates
-
bounds(Object - {left:"...",top:"...",right:"...",bottom:"..."}) if _viewbox _ifboundOptionis set to "config"
-
-
outputTarget: plugin target (plugin general configuration) -
index: index in target (plugin general configuration)