Angular controller

controller source

Methods

clear

Remove previous search and search results

highlightResult (result, state)

Set property highlighted of result to state

Parameters

NameTypeDescription
result object
state string

init

Initialization of search state

queryChanged

Handler of search input, request search service and display results div

searchResultsReceived (response, provider)

Handler for receiving results of search request, sends results to correct parser

Parameters

NameTypeDescription
response object

Result of search request

provider string

Which provider sent the search results

zoomTo (result)

Zoom map to selected result from results list

Parameters

NameTypeDescription
result object

Selected result