Parameters

val: number

Returns void

Methods

addEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:287

Alias for on(...)

Adds a listener function (fn) to a particular event type of the object.
You can optionally specify the context of the listener (object the this
keyword will point to). You can also pass several space-separated types
(e.g. 'click dblclick').

Parameters

type: string

fn: EventHandlerFn

Optional context: Object

Inherited from Evented.addEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:294

obj: Evented

addOneTimeEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:325

Alias for once(...)

Behaves as on(...), except the listener will only get fired once and then removed.

Parameters

type: string

fn: EventHandlerFn

Optional context: Object

Inherited from Evented.addOneTimeEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:332

Alias for once(...)

Behaves as on(...), except the listener will only get fired once and then removed.

Parameters

eventMap: EventHandlerFnMap

addTo

addTo(map: Map)

Inherited from Layer.addTo

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:360

Parameters

map: Map

beforeAdd

beforeAdd(map: Map)

Inherited from Layer.beforeAdd

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:406

Parameters

map: Map

bindPopup

bindPopup(content: string, options?: PopupOptions)

bindPopup(content: HTMLElement, options?: PopupOptions)

bindPopup(content: function, options?: PopupOptions)

bindPopup(content: Popup)

Inherited from Layer.bindPopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:366

Parameters

content: string

Optional options: PopupOptions

Inherited from Layer.bindPopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:367

Parameters

content: HTMLElement

Optional options: PopupOptions

Inherited from Layer.bindPopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:368

Parameters

content: function

(layer: Layer): Content

Parameters

layer: Layer

Returns Content

Optional options: PopupOptions

Inherited from Layer.bindPopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:369

Parameters

content: Popup

bindTooltip

bindTooltip(content: string, options?: TooltipOptions)

bindTooltip(content: HTMLElement, options?: TooltipOptions)

bindTooltip(content: function, options?: TooltipOptions)

bindTooltip(content: Tooltip, options?: TooltipOptions)

Inherited from Layer.bindTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:384

Parameters

content: string

Optional options: TooltipOptions

Inherited from Layer.bindTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:385

Parameters

content: HTMLElement

Optional options: TooltipOptions

Inherited from Layer.bindTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:386

Parameters

content: function

(layer: Layer): Content

Parameters

layer: Layer

Returns Content

Optional options: TooltipOptions

Inherited from Layer.bindTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:387

Parameters

content: Tooltip

Optional options: TooltipOptions

bringToBack

bringToBack()

Inherited from ImageOverlay.bringToBack

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:512

bringToFront

bringToFront()

Inherited from ImageOverlay.bringToFront

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:511

clearAllEventListeners

clearAllEventListeners()

Inherited from Evented.clearAllEventListeners

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:318

Alias for off()

Removes all listeners to all events on the object.

closePopup

closePopup()

Inherited from Layer.closePopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:375

closeTooltip

closeTooltip()

Inherited from Layer.closeTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:393

fire

fire(type: string, data?: Object, propagate?: boolean)

Inherited from Evented.fire

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:252

Fires an event of the specified type. You can optionally provide a data
object — the first argument of the listener function will contain its properties.
The event might can optionally be propagated to event parents.

Parameters

type: string

Optional data: Object

Optional propagate: boolean

fireEvent

fireEvent(type: string, data?: Object, propagate?: boolean)

Inherited from Evented.fireEvent

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:341

Alias for fire(...)

Fires an event of the specified type. You can optionally provide a data
object — the first argument of the listener function will contain its properties.
The event might can optionally be propagated to event parents.

Parameters

type: string

Optional data: Object

Optional propagate: boolean

getAttribution

getAttribution(): string

Inherited from Layer.getAttribution

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:405

Returns string

getBounds

getBounds(): LatLngBounds

Inherited from ImageOverlay.getBounds

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:515

Returns LatLngBounds

getElement

getElement(): HTMLElement

Inherited from ImageOverlay.getElement

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:514

Returns HTMLElement

getEvents

getEvents(): object

Inherited from Layer.getEvents

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:404

Returns object

[name: string]: function

(event: Event): void

Parameters

event: Event

Returns void

getPane

getPane(name?: string): HTMLElement

Inherited from Layer.getPane

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:363

Parameters

Optional name: string

Returns HTMLElement

getPopup

getPopup(): Popup

Inherited from Layer.getPopup

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:381

Returns Popup

getTooltip

getTooltip(): Tooltip

Inherited from Layer.getTooltip

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:399

Returns Tooltip

hasEventListeners

hasEventListeners(type: string): boolean

Inherited from Evented.hasEventListeners

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:348

Alias for listens(...)

Returns true if a particular event type has any listeners attached to it.

Parameters

type: string

Returns boolean

isPopupOpen

isPopupOpen(): boolean

Inherited from Layer.isPopupOpen

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:377

Returns boolean

isTooltipOpen

isTooltipOpen(): boolean

Inherited from Layer.isTooltipOpen

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:395

Returns boolean

listens

listens(type: string): boolean

Inherited from Evented.listens

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:257

Returns true if a particular event type has any listeners attached to it.

Parameters

type: string

Returns boolean

ngOnDestroy

Returns void

off

off(type: string, fn?: EventHandlerFn, context?: Object)

off(eventMap: EventHandlerFnMap)

off()

Inherited from Evented.off

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:235

Removes a previously added listener function. If no function is specified,
it will remove all the listeners of that particular event from the object.
Note that if you passed a custom context to on, you must pass the same context
to off in order to remove the listener.

Parameters

type: string

Optional fn: EventHandlerFn

Optional context: Object

Inherited from Evented.off

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:240

Removes a set of type/listener pairs.

Parameters

eventMap: EventHandlerFnMap

Inherited from Evented.off

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:245

Removes all listeners to all events on the object.

on

on(type: string, fn: EventHandlerFn, context?: Object)

on(eventMap: EventHandlerFnMap)

Inherited from Evented.on

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:222

Adds a listener function (fn) to a particular event type of the object.
You can optionally specify the context of the listener (object the this
keyword will point to). You can also pass several space-separated types
(e.g. 'click dblclick').

Parameters

type: string

fn: EventHandlerFn

Optional context: Object

Inherited from Evented.on

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:227

removeEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:304

Alias for off(...)

Removes a previously added listener function. If no function is specified,
it will remove all the listeners of that particular event from the object.
Note that if you passed a custom context to on, you must pass the same context
to off in order to remove the listener.

Parameters

type: string

fn: EventHandlerFn

Optional context: Object

Inherited from Evented.removeEventListener

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:311

Alias for off(...)

Removes a set of type/listener pairs.

Parameters

eventMap: EventHandlerFnMap

removeEventParent

removeEventParent(obj: Evented)

Inherited from Evented.removeEventParent

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:277

Removes an event parent, so it will stop receiving propagated events

Parameters

obj: Evented

removeFrom

removeFrom(map: Map)

Inherited from Layer.removeFrom

Defined in /tmp/leaflet-ng2-src/typings/globals/leaflet/index.d.ts:362