new LocationMgr(options)
A class for managing user-specified location information
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/LocationMgr~LocationMgr.Options | Constructor options |
- Source:
Fires:
Extends
Members
-
locator :module:nyc/Locator~Locator
-
The Locator
Type:
- Source:
-
zoomSearch :module:nyc/ZoomSearch~ZoomSearch
-
The ZoomSearch
Type:
- Source:
Methods
-
off(eventName, evtHdlr [, hdlrScope])
-
Remove a previously connected event handler
Parameters:
Name Type Argument Description eventNamestring The name of the event to which the handler will be connected
evtHdlrfunction The event handler function
hdlrScopeObject <optional>
The scope in which to invoke the event handler
- Inherited From:
- Source:
-
on(eventName, evtHdlr [, hdlrScope])
-
Connect a function to an event
Parameters:
Name Type Argument Description eventNamestring The name of the event to which the handler will be connected
evtHdlrfunction The event handler function
hdlrScopeObject <optional>
The scope in which to invoke the event handler
- Inherited From:
- Source:
-
one(eventName, evtHdlr [, hdlrScope])
-
Connect a function to an event for a single invocation
Parameters:
Name Type Argument Description eventNamestring The name of the event to which the handler will be connected
evtHdlrfunction The event handler function
hdlrScopeObject <optional>
The scope in which to invoke the event handler
- Inherited From:
- Source:
-
setLocation(data)
-
Zomm and center on the provided location
Parameters:
Name Type Description datamodule:nyc/Locator~Locator.Result The location
- Source:
-
trigger(eventName [, data])
-
Trigger a named event with event data
Parameters:
Name Type Argument Description eventNamestring The name of the event to trigger
dataObject <optional>
The event data
- Inherited From:
- Source:
Type Definitions
-
Options
-
Constructor options for module:nyc/LocationMgr~LocationMgr
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description zoomSearchmodule:nyc/ZoomSearch~ZoomSearch The UX zoom search controls for user input
locatormodule:nyc/Locator~Locator The geocoding and geolocation provider
mapLocatormodule:nyc/MapLocator~MapLocator The mapLocator used to manipulate a map
autoLocateboolean <optional>
false Automatically locator using device geolocation on load