new FinderApp(options)
An class for creating basic facility finder apps
Parameters:
| Name | Type | Description |
|---|---|---|
options |
nyc.FinderApp.Options | Constructor options |
Members
(static, constant) TEMPLATE_HTML :string
Basic HTML to support facility finder
Type:
- string
finderSource :nyc.ol.source.FilteringAndSorting
Type:
map :ol.Map
Type:
- ol.Map
view :ol.View
Type:
- ol.View
Methods
directionsTo(event)
Method to get directions from user location to facility location on directions button click
Parameters:
| Name | Type | Description |
|---|---|---|
event |
JQuery.Event |
listFacilities(event)
Method to list facilities
Parameters:
| Name | Type | Description |
|---|---|---|
event |
ol.MapBrowserEvent |
listNextPage(event)
Method to page through facilities
Parameters:
| Name | Type | Description |
|---|---|---|
event |
ol.MapBrowserEvent |
located(location)
Method to handle nyc.Locate events
Parameters:
| Name | Type | Description |
|---|---|---|
location |
nyc.Locate.Result |
mapClick(event)
Method to handle map click and show popup if appropriate
Parameters:
| Name | Type | Description |
|---|---|---|
event |
ol.MapBrowserEvent |
showPopup(event)
Method to show popup on a facility feature
Parameters:
| Name | Type | Description |
|---|---|---|
event |
ol.MapBrowserEvent |
zoomTo(event)
Method to zoom to facility location on map button click
Parameters:
| Name | Type | Description |
|---|---|---|
event |
JQuery.Event |
Type Definitions
Options
Object type to hold constructor options for nyc.FinderApp
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
map |
ol.Map | |
finderSource |
nyc.ol.source.FilteringAndSorting | |
locationMgr |
nyc.LocationMgr | |
filterControls |
Array.<nyc.Choice> | |
directionsUrl |
string |