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