MAPPE DELLA SARDEGNA
sardegnamappe api  ›  api documentation  ›  classe
Class framework.form.OpenPOISearchCombo


Extends Ext.form.ComboBox.
Creates a combo box that handles results from a OpenPOI service.
Defined in: OpenPOISearchCombo.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a combo box that handles results from a directory service OpenLS.
Field Summary
Field Attributes Field Name and Description
 
Store CATEGORIES
 
Enable the destroying of the previously rendered features before render new features that represent search results
 
Text to display for an empty field default value is "Ricerca posizione".
 
If provided, a marker will be drawn on this layer with the location returned by the geocoder.
 
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 350.
 
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText, default value is "Search in Geonames.
 
map
A configured map or a configuration object for the map constructor, required only if :attr:`zoom` is set to value greater than or equal to 0.
 
api: config[geometryFields] fields from service answer to be transformed on OpenLayers.Bounds
 
paht for images marker, default value is "theme/app/img/".
 
See: http://www.geonames.org/export/geonames-search.html The maximum number of rows in the responses, defaults to 20, maximum allowed value is 1000
 
api: config[infoFormat] maxFeatures for WFS service (query string parameter) Default 50
 
Minimum number of characters to be typed before search occurs Defaults to 1
 
api: config[path_img]
 
Delay before the search occurs.
 
api: config[GetFeature] Request type for WFS service (query string parameter) Default GetFeature
 
Enable POI search on external services
 
api: config[serviceType] Service type for catasto service (query string parameter) Default WFS
 
srs
The srs used by the geocoder service.
 
api: config[typeName] typeName for WFS service (query string parameter)
 
api: config[urlService] url to proxy for authenticate http calls
 
api: config[urlCatasto] url for wfs catasto service
 
the authenticate user
 
api: config[version] Version for WFS service (query string parameter) Default 1.0.0
 
See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 240.
 
The minimum zoom level to use when zooming to a location.
Method Summary
Method Attributes Method Name and Description
 
checkUrl(url)
 
 
 
doQuery(q, forceAll)
Execute a query to filter the dropdown list.
 
A utility function to find all URLs - FTP, HTTP(S) and Email - in a text string and return them in an array.
 
getBoundedExtent(extent, maxExtent)
 
 
 
 
 
isValidExtent(extent)
 
 
 
updateISTAT(coord)
 
updateuserAuth(userAuthDS)
Class Detail
framework.form.OpenPOISearchCombo()
Creates a combo box that handles results from a directory service OpenLS. By default it uses OpenPOI service by Regione Autonoma della Sardegna, but it can be configured with a custom store to use other services standard OpenPOI. If the user enters a valid address in the search box, the combo's store will be populated with records that match the address.
Field Detail
categoriesDS
Store CATEGORIES

{Boolean} destroyPreviousFeatures
Enable the destroying of the previously rendered features before render new features that represent search results

{String} emptyText
Text to display for an empty field default value is "Ricerca posizione".

{OpenLayers.Layer.Vector} layer
If provided, a marker will be drawn on this layer with the location returned by the geocoder. The location will be cleared when the map panned.

{Number} listWidth
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 350.

{String} loadingText
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText, default value is "Search in Geonames...".

{OpenLayers.Map or Object} map
A configured map or a configuration object for the map constructor, required only if :attr:`zoom` is set to value greater than or equal to 0.

{Array of String} mapSearchExtent
api: config[geometryFields] fields from service answer to be transformed on OpenLayers.Bounds

{String} markersImgPath
paht for images marker, default value is "theme/app/img/".

{String} maxfeatures
See: http://www.geonames.org/export/geonames-search.html The maximum number of rows in the responses, defaults to 20, maximum allowed value is 1000

{Number} maxFeatures
api: config[infoFormat] maxFeatures for WFS service (query string parameter) Default 50

{number} minChars
Minimum number of characters to be typed before search occurs Defaults to 1

{String} path_img
api: config[path_img]

{number} queryDelay
Delay before the search occurs. Default is 50ms.

{String} requestType
api: config[GetFeature] Request type for WFS service (query string parameter) Default GetFeature

{Boolean} searchExternalPoi
Enable POI search on external services

{String} serviceType
api: config[serviceType] Service type for catasto service (query string parameter) Default WFS

{String} srs
The srs used by the geocoder service. Default is "EPSG:3003".

{String} typeName
api: config[typeName] typeName for WFS service (query string parameter)

{String} urlProxy
api: config[urlService] url to proxy for authenticate http calls

{String} urlWFS
api: config[urlCatasto] url for wfs catasto service

{Ext.data.Store} userAuthDS
the authenticate user

{String} version
api: config[version] Version for WFS service (query string parameter) Default 1.0.0

{Number} width
See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 240.

{number} zoom
The minimum zoom level to use when zooming to a location. Not used when zooming to a bounding box. Default is 12.
Method Detail
{url} checkUrl(url)
Parameters:
url
Returns:
{url}

clearBaseParams(store)
Parameters:
store

closeWinEdit()

doQuery(q, forceAll)
Execute a query to filter the dropdown list. Fires the #beforequery event prior to performing the query allowing the query action to be canceled if needed.
Parameters:
{String} q
query The SQL query to execute
{Boolean} forceAll
true to force the query to execute even if there are currently fewer characters in the field than the minimum specified by the #minChars config option. It also clears any filter previously saved in the current store (defaults to false)

findAttribution(text)
A utility function to find all URLs - FTP, HTTP(S) and Email - in a text string and return them in an array. Note, the URLs returned are exactly as found in the text.
Parameters:
text
the text to be searched.
Returns:
an array of URLs.

getBoundedExtent(extent, maxExtent)
Parameters:
extent
maxExtent

insertPoiToMap(store)
Parameters:
store

insFeaturePOI(evt)
Parameters:
evt

isAdvancedSearch()

isPointContainedInSearchExtent(lon, lat)
Parameters:
lon
lat

isValidExtent(extent)
Parameters:
extent

modFeaturePOI(evt)
Parameters:
evt

onFeaturesremoved()

updateISTAT(coord)
Parameters:
coord

updateuserAuth(userAuthDS)
Parameters:
userAuthDS
© 2013 Regione Autonoma della Sardegna