Class Icon

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

Hierarchy

Index

Classes

Constructor methods

Classes

Default: Default

L.Icon.Default extends L.Icon and is the blue icon Leaflet uses for markers by default.

constructor(options?: IconOptions): Default

Creates a default icon instance with the given options.

Parameters

Returns

Default

public static imagePath: string

Constructor methods

constructor(options: IconOptions): Icon

Creates an icon instance with the given options.

Parameters

Returns

Icon