Class: Locator maps.nyc.gov

nyc.ol.Locator

new Locator(options)

A class for managing map location
Parameters:
Name Type Description
options nyc.ol.Locator.Options Constructor options
Implements:
Source:

Methods

zoomLocation(data, callback)

Parameters:
Name Type Description
data nyc.Locate.Result The location to which the map will be oriented
callback function The function to call after the locator has zoomed to the location
Implements:
Source:

Type Definitions

Options

Object type to hold constructor options for nyc.leaf.Locator
Type:
  • Object
Properties:
Name Type Attributes Default Description
map ol.Map The map on which location will be managed
layer ol.layer.Vector The layer on which user-specified locations will be displayed
zoom number <optional>
nyc.ol.Locate.ZOOM_LEVEL The zoom level used when locating coordinates
Source: