forked from geosolutions-it/MapStore
-
Notifications
You must be signed in to change notification settings - Fork 0
Nominatim GeoCoder Developer
Damianofds edited this page Apr 4, 2013
·
3 revisions
Include in buildjs these files:
gxp/src/script/widgets/NominatimGeocoderComboBox.js
gxp/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-
emptyText
text 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 _ifboundOption
is set to "config"
-
-
outputTarget
: plugin target (plugin general configuration) -
index
: index in target (plugin general configuration)
The nominatim plugin for not included projections can use proj4js lib.
Some projections definition could not have correction parameters for transformation from/to EPSG:4326, so they have to be set manually. The corrective parameter is +towgs84
MapStore allow to override Proj4js definitions (see this configuration ).
###Exemple:
EPSG:3003 (Monte Mario / Italy zone 1) definition don't include these parameters. this may cause a shift of a hundred meters. For Peninsular zone configuration the additional configuration is:
"proj4jsDefs":{
"EPSG:3003":"+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=1500000 +y_0=0 +ellps=intl +units=m +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +no_defs"
},
####Correction Parameters for EPSG:3003
+towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 | Italy (Peninsular Part), Accuracy 3-4m |
+towgs84=-168.6,-34.0,38.6,-0.374,-0.679,-1.379,-9.48 | Italy (Sardinia), Accuracy 3-4m |
+towgs84=-50.2,-50.4,84.8,-0.690,-2.012,0.459,-28.08 | Italy (Sicily), Accuracy 3-4m |