maps.nyc.gov

Class: FinderApp

nyc.FinderApp

new FinderApp(options)

An class for creating basic facility finder apps
Parameters:
Name Type Description
options nyc.FinderApp.Options Constructor options
Source:

Members

(static, constant) TEMPLATE_HTML :string

Basic HTML to support facility finder
Type:
  • string
Source:

finderSource :nyc.ol.source.FilteringAndSorting

Type:
Source:

map :ol.Map

Type:
  • ol.Map
Source:

view :ol.View

Type:
  • ol.View
Source:

Methods

directionsTo(event)

Method to get directions from user location to facility location on directions button click
Parameters:
Name Type Description
event JQuery.Event
Source:

listFacilities(event)

Method to list facilities
Parameters:
Name Type Description
event ol.MapBrowserEvent
Source:

listNextPage(event)

Method to page through facilities
Parameters:
Name Type Description
event ol.MapBrowserEvent
Source:

located(location)

Method to handle nyc.Locate events
Parameters:
Name Type Description
location nyc.Locate.Result
Source:

mapClick(event)

Method to handle map click and show popup if appropriate
Parameters:
Name Type Description
event ol.MapBrowserEvent
Source:

showPopup(event)

Method to show popup on a facility feature
Parameters:
Name Type Description
event ol.MapBrowserEvent
Source:

zoomTo(event)

Method to zoom to facility location on map button click
Parameters:
Name Type Description
event JQuery.Event
Source:

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
Source: