Installation
npm install --save @types/leaflet.icon.glyph
Summary
This package contains type definitions for leaflet.icon.glyph (https://github.com/Leaflet/Leaflet.Icon.Glyph).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.icon.glyph.
index.d.ts
import * as L from "leaflet";
declare module "leaflet" {
namespace Icon {
class Glyph extends Icon {
constructor(options?: GlyphOptions | GlyphIconOptions);
options: GlyphIconOptions;
createIcon(): HTMLElement;
}
interface GlyphOptions extends BaseIconOptions {
className?: string | undefined;
bgPos?: PointExpression | undefined;
bgSize?: PointExpression | undefined;
prefix?: string | undefined;
glyph?: string | undefined;
glyphColor?: string | undefined;
glyphSize?: string | undefined;
glyphAnchor?: PointExpression | undefined;
}
interface GlyphIconOptions extends IconOptions {
className?: string | undefined;
bgPos?: PointExpression | undefined;
bgSize?: PointExpression | undefined;
prefix?: string | undefined;
glyph?: string | undefined;
glyphColor?: string | undefined;
glyphSize?: string | undefined;
glyphAnchor?: PointExpression | undefined;
}
}
namespace icon {
function glyph(options?: Icon.GlyphOptions | Icon.GlyphIconOptions): Icon.Glyph;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by BePo65.