new FinderApp(options)
A class that provides a template for creating basic finder apps
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/FinderApp~FinderApp.Options | Constructor options |
- Source:
Members
-
filters :module:nyc/ol/Filters~Filters
-
The filters for filtering the facilities
Type:
- Source:
-
tabs :module:nyc/Tabs~Tabs
-
The tabs containing the map, facilities and filters
Type:
- Source:
Methods
-
<static> reload()
-
Reload the page
- Source:
-
adjustBanner()
-
Scale font size responsively
- Source:
-
createDecorations(options, format)
-
Parameters:
Name Type Description optionsmodule:nyc/ol/FinderApp~FinderApp.Options Constructor options
formatol.format.Feature The OpenLayers feature format
- Source:
Returns:
Decorations
- Type
- Array.<Object.<string, fuction>>
-
<protected> createFilters( [choiceOptions])
-
Creates the filters for the facility features
Parameters:
Name Type Argument Description choiceOptionsArray.<module:nyc/ol/Filters~Filters.ChoiceOptions> <optional>
Choice options
- Source:
Returns:
Filters
-
createParentFormat(options)
-
Parameters:
Name Type Description optionsmodule:nyc/ol/FinderApp~FinderApp.Options Constructor options
- Source:
Returns:
The parent format
- Type
- ol.format.Feature
-
<protected> createTabs(options)
-
Creates the tabs for the map, facilities and filters
Parameters:
Name Type Description optionsmodule:nyc/ol/FinderApp~FinderApp.Options Options
- Source:
Returns:
Tabs
- Type
- module:nyc/Tabs~Tabs
-
directionsTo(feature, returnFocus)
-
Provides directions to the provided facility feature
Parameters:
Name Type Description featureol.Feature OpenLayers feature
returnFocusJQuery The DOM element that should receive focus when leaving the directions view
- Source:
-
<protected> located(location)
-
Handles geocoded and geolocated events
Parameters:
Name Type Description locationmodule:nyc/Locator~Locator.Result Location
- Source:
-
resetList(event)
-
Reset the facilities list
Parameters:
Name Type Description eventObject Event object
- Source:
-
<protected> tabChange(tabs)
-
Handles the tab change event
Parameters:
Name Type Description tabsmodule:nyc/Tabs~Tabs Tabs
- Source:
-
translateBtn(options)
-
Create the translate button
Parameters:
Name Type Description optionsmodule:nyc/ol/FinderApp~FinderApp.Options Constructor options
- Source:
Returns:
Goog instance
- Type
- nyc.lang.Goog~Goog
-
zoomTo(feature)
-
Centers and zooms to the provided feature
Parameters:
Name Type Description featureol.Feature OpenLayers feature
- Source:
Type Definitions
-
Options
-
Constructor options for module:nyc/ol/FinderApp~FinderApp
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description titlestring The app title
splashOptionsmodule:nyc/Dialog~Dialog.Options Content to display as a splash page
facilityTabTitlestring <optional>
Facilities Title for the facilites list
facilityUrlstring The URL for the facility features data
facilityFormatol.format.Feature <optional>
The format of the facilities data
facilityStyleol.style.Style The styling for the facilities layer
facilitySearchmodule:nyc/Search~Search.FeatureSearchOptions | boolean <optional>
false Search options for feature searches or true to use default search options
filterTabTitlestring <optional>
Filters Title for the filters tab
filterChoiceOptionsArray.<module:nyc/ol/Filters~Filters.ChoiceOptions> <optional>
Filter definitions
geoclientUrlstring The URL for the Geoclient geocoder with approriate keys
directionsUrlstring The URL for the Google directions API with approriate keys
defaultDirectionsModegoogle.maps.TravelMode The mode for Google directions
mouseWheelZoomboolean <optional>
true Allow mouse wheel map zooming
refreshmodule:nyc/ol/FinderApp~FinderApp.RefreshOptions <optional>
Options for periodically refreshing facility data
-
RefreshOptions
-
Constructor options for module:nyc/ol/FinderApp~FinderApp
Type:
- Object
- Source:
Properties:
Name Type Description minutesnumber Number of minutes for refresh interval
callbackfunction Callback function for refresh