new alk.source.SingleSearch(opt_options)
This constructor creates a Vector Source object that responds to the ALK Single Search Service.
| Option | Type | Description |
|---|---|---|
searchSingleSearchService |
alk.service.SearchSingleSearchService |
This option contains the Search Single Search service with which to use for this source. |
searchSingleSearchServiceOptions |
alkx.SearchSingleSearchServiceOptions |
This option contains the Search Single Search service options with which to create internally for this source. |
wrapX |
boolean | undefined |
This option is an OpenLayers option passed to the Whether to wrap the world horizontally. The default, |
Fires:
-
change:searchResult - This event is fired when a search result is retrieved.
Extends
- ol.source.Vector
Members
-
searchResult{alkx.SingleSearchResult} {null}
-
Methods
-
getSearchResult(){alkx.SingleSearchResult|null}
-
-
getSearchSingleSearchService(){alk.service.SearchSingleSearchService}
-
-
search(options, complete)
-
Name Type Description optionsalkx.SearchSingleSearchServiceOptions Option Type Description apiKeystring This option contains the ALK ApiKey that gives you permission to extract data from ALK Servers.
codesArray.<string> | string This option specifies the FIPS codes for counties in the search.
datasetalk.val.Dataset | number | string The option contains the Dataset parameter for the Service. This option specifies an area dataset that may be pertinent to the request.
hostURLstring This option contains the the host and port URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used.
pathstring This option is the path part of the URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used.
regionalk.val.Region | number | string This option tells the service in which region the retrieved data is to pertain. Some ALK Services switch underlying services due to this option. For instance, traffic data for North America and Europe may come from different underlying services.
maxResultsnumber | string This option specifies the max number of results to return. It must be between 1 and 100, inclusive.
countryTypestring This option specifies the country type abbreviation the countries parameter is using.
countriesArray.<string> | string This option specifies the countries for the search. They must be in the form specified by the countryType parameter.
statesArray.<string> | string This option specifies the states with which to restrict the search. Their values must come from the "Abbrev" attribute of states returned from the
alk.service.StatesSingleSearchService.excludeSearchTypesArray.<string> | string This option specifies the search types to exclude when analysing the query of the search. Their values must come from the
alk.service.SearchTypesSingleSearchService.poiCategoriesArray.<string> | string This options specifies the Points of Interest categories with which to restrict the search. Their values must come from the
alk.service.POICategoriesSingleSearchService.coordsArray.<string> | string This options specifies the coordinates with which to restrict the search. The projection must be EPSG:4356.
completefunction