Class: LocationMgr

nyc/ol/LocationMgr~ LocationMgr


new LocationMgr(options)

A class for managing user-specified location information

Parameters:
Name Type Description
options module:nyc/ol/LocationMgr~LocationMgr.Options

Constructor options

Source:
Fires:

Extends

Members


locator :module:nyc/Locator~Locator

The Locator

Type:
Inherited From:
Source:

zoomSearch :module:nyc/ZoomSearch~ZoomSearch

The ZoomSearch

Type:
Inherited From:
Source:

Methods


off(eventName, evtHdlr [, hdlrScope])

Remove a previously connected event handler

Parameters:
Name Type Argument Description
eventName string

The name of the event to which the handler will be connected

evtHdlr function

The event handler function

hdlrScope Object <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
eventName string

The name of the event to which the handler will be connected

evtHdlr function

The event handler function

hdlrScope Object <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
eventName string

The name of the event to which the handler will be connected

evtHdlr function

The event handler function

hdlrScope Object <optional>

The scope in which to invoke the event handler

Inherited From:
Source:

setLocation(data)

Zoom and center on the provided location

Parameters:
Name Type Description
data module:nyc/Locator~Locator.Result

The location

Inherited From:
Source:

trigger(eventName [, data])

Trigger a named event with event data

Parameters:
Name Type Argument Description
eventName string

The name of the event to trigger

data Object <optional>

The event data

Inherited From:
Source:

Type Definitions


Options

Constructor options for module:nyc/ol/LocationMgr~LocationMgr

Type:
  • Object
Properties:
Name Type Description
map ol.Map

The map

url string

The geoclient URL

Source: