Class: Locator maps.nyc.gov

nyc.leaf.Locator

new Locator(options)

A class for managing map location
Parameters:
Name Type Description
options nyc.leaf.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 L.Map The map on which location will be managed
icon L.Icon <optional>
The icon with which coordinates will be marked
style function <optional>
The style function for geoJSON geometries that will be displayed
zoom number <optional>
nyc.leaf.Locate.ZOOM_LEVEL The zoom level used when locating coordinates
Source: