new Locator(options)
A class for managing map location
Parameters:
- 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
Type:
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: