Class: OsmModel

Searchbar.Osm OsmModel

MapView

new OsmModel(config){void}

modules/searchbar/osm/model.js, line 44
Initialisierung der OSM Suche
Name Type Default Description
config Object The configuration object of the OSM search.
Name Type Default Description
minChars number 3 optional Minimum number of characters before a search is initiated.
osmServiceUrl string ID from rest services for URL.
limit number 50 optional Number of proposals requested.
osm.states string "" optional List of the federal states for the hit selection..
Properties:
Name Type Default Description
minChars number 3 todo
osmServiceUrl string "" todo
limit number 50 todo
street string "" todo
states string "" todo
searchParams Array [ todo
classes Array [ todo
ajaxRequest * null todo
Fires:
Listens to Events:

Extends

Methods

ajaxSend(url, data, successFunction){void}

modules/searchbar/osm/model.js, line 279
Fires an HTTP GET request and saves its id.
Name Type Description
url String todo
data JSON todo
successFunction function todo

canShowHit(hit){boolean}

modules/searchbar/osm/model.js, line 238
Determines whether the hit is displayed by the parameters or not.
Name Type Description
hit Object search hits
Returns:
| false

isSearched(searched, params){boolean}

modules/searchbar/osm/model.js, line 208
Determines whether the result contains all entered parameters.
Name Type Description
searched Array.<object> The search result to be examined.
params Array.<array> The split result.
Returns:
| false

polishAjax(){void}

modules/searchbar/osm/model.js, line 315
todo

pushSuggestions(data){void}

modules/searchbar/osm/model.js, line 132
Evaluate hits of the first search; create offer list.
Name Type Description
data Array todo
Fires:
modules/searchbar/osm/model.js, line 83
Access for the search... Is triggered by the search bar.
Name Type Description
searchString string todo
Fires:

sendRequest(url, data, successFunction){void}

modules/searchbar/osm/model.js, line 262
Abortet ggf. vorhandenen Request und initiiert neuen Request.
Name Type Description
url String URL the request is sent to.
data String Data to be sent to the server
successFunction function A function to be called if the request succeeds

setAjaxRequest(value){void}

modules/searchbar/osm/model.js, line 396
Setter for ajaxRequest.
Name Type Description
value * todo

setClasses(value){void}

modules/searchbar/osm/model.js, line 378
Setter for classes.
Name Type Description
value * todo

setInUse(value){void}

modules/searchbar/osm/model.js, line 324
Setter for inUse.
Name Type Description
value * todo

setLimit(value){void}

modules/searchbar/osm/model.js, line 342
Setter for limit.
Name Type Description
value * todo

setMinChars(value){void}

modules/searchbar/osm/model.js, line 387
Setter for minChars.
Name Type Description
value * todo

setOsmServiceUrl(value){void}

modules/searchbar/osm/model.js, line 333
Setter for osmServiceUrl.
Name Type Description
value * todo

setSearchParams(value){void}

modules/searchbar/osm/model.js, line 369
Setter for searchParams.
Name Type Description
value * todo

setStates(value){void}

modules/searchbar/osm/model.js, line 351
Setter for states.
Name Type Description
value * todo

setStreet(value){void}

modules/searchbar/osm/model.js, line 360
Setter for street.
Name Type Description
value * todo

showError(err){void}

modules/searchbar/osm/model.js, line 305
Triggers the display of an error message.
Name Type Description
err object Error object from Ajax request.

suggestByOSM(searchString){void}

modules/searchbar/osm/model.js, line 99
Search string (street HsNr) constructed by user...
Name Type Description
searchString string todo