Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plan

Hierarchy

Implements

Index

Methods

addEventListener

  • addEventListener(type: string, fn: function, context?: any): Plan
  • addEventListener(eventMap: any, context?: any): Plan
  • Parameters

    Returns Plan

  • Parameters

    • eventMap: any
    • Optional context: any

    Returns Plan

addOneTimeEventListener

  • addOneTimeEventListener(type: string, fn: function, context?: any): Plan
  • Parameters

    Returns Plan

clearAllEventListeners

  • clearAllEventListeners(): Plan

createGeocoders

  • createGeocoders(): HTMLElement
  • Returns HTMLElement

dragNewWaypoint

  • Parameters

    Returns void

fire

  • fire(type: string, data?: any): Plan
  • Parameters

    • type: string
    • Optional data: any

    Returns Plan

fireEvent

  • fireEvent(type: string, data?: any): Plan
  • Parameters

    • type: string
    • Optional data: any

    Returns Plan

getWaypoints

  • Returns Waypoint[]

hasEventListeners

  • hasEventListeners(type: string): boolean
  • Parameters

    • type: string

    Returns boolean

isReady

  • isReady(): boolean
  • Returns boolean

off

  • off(type: string, fn?: function, context?: any): Plan
  • off(eventMap?: any, context?: any): Plan
  • Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns Plan

  • Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns Plan

on

  • on(type: string, fn: function, context?: any): Plan
  • on(eventMap: any, context?: any): Plan
  • Parameters

    Returns Plan

  • Parameters

    • eventMap: any
    • Optional context: any

    Returns Plan

onAdd

  • onAdd(map: Map): void
  • Parameters

    Returns void

onRemove

  • onRemove(): void
  • Returns void

once

  • once(type: string, fn: function, context?: any): Plan
  • Parameters

    Returns Plan

removeEventListener

  • removeEventListener(type: string, fn?: function, context?: any): Plan
  • removeEventListener(eventMap?: any, context?: any): Plan
  • Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns Plan

  • Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns Plan

setWaypoints

  • Parameters

    Returns Plan

spliceWaypoints

  • spliceWaypoints(index: number, waypointsToRemove: number, ...newWaypoints: Waypoint[]): Waypoint[]
  • Parameters

    • index: number
    • waypointsToRemove: number
    • Rest ...newWaypoints: Waypoint[]

    Returns Waypoint[]

Static addInitHook

  • addInitHook(methodName: string, ...args: any[]): void
  • You can also use the following shortcut when you just need to make one additional method call.

    Parameters

    • methodName: string
    • Rest ...args: any[]

    Returns void

Static extend

  • You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.

    Parameters

    Returns any