Class Class

L.Class powers the OOP facilities of Leaflet and is used to create almost all of the Leaflet classes documented.

Hierarchy

Index

Methods

Methods

public static addInitHook(methodName: string, args?: Array<any>)

You can also use the following shortcut when you just need to make one additional method call.

Parameters

  • methodName: string
  • args?: Array<any> optional

public static extend(options: ClassExtendOptions): any

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