new Search(target)
Class for providing a set of buttons to zoom and search.
Parameters:
| Name | Type | Description |
|---|---|---|
target |
jQuery | Element | string | The target |
- Source:
Fires:
Extends
Methods
-
disambiguate(ambiguous)
-
Displays possible address matches
Parameters:
Name Type Description ambiguousmodule:nyc/Locator~Locator.Ambiguous Possible locations resulting from a geocoder search to display to the user
- Inherited From:
- Source:
-
featureAsLocation(feature, options)
-
Parameters:
Name Type Description featureObject The feature object
optionsmodule:nyc/Search~Search.FeatureSearchOptions Describes how to convert feature
- Inherited From:
- Overrides:
- Source:
Returns:
The location
-
removeFeatures(featureTypeName)
-
Remove searchable features
Parameters:
Name Type Description featureTypeNamestring The featureTypeName used when the features were set
- Inherited From:
- Source:
-
setFeatures(options)
-
Add searchable features
Parameters:
Name Type Description optionsmodule:nyc/Search~Search.FeatureSearchOptions The options for creating a feature search
- Inherited From:
- Source:
-
val( [val])
-
Set or get the value of the search field
Parameters:
Name Type Argument Description valstring <optional>
The value for the search field
- Inherited From:
- Source:
Returns:
The value of the search field
- Type
- string
Events
-
disambiguated
-
The user has chosen a location from a list of possible locations
Type: module:nyc/Locate~Locate.Result
- Inherited From:
- Source:
-
search
-
The user has requested a search based on their text input
Type: string
- Inherited From:
- Source: