Installation
npm install --save @types/leaflet.awesome-markers
Summary
This package contains type definitions for leaflet.awesome-markers (https://github.com/sigma-geosistemas/Leaflet.awesome-markers#properties).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.awesome-markers/v0.
import * as Leaflet from "leaflet";
declare global {
namespace L {
namespace AwesomeMarkers {
var version: string;
function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon;
interface IconStatic extends Leaflet.IconStatic {
new(options: IconOptions): Icon;
Default: {
new(options?: IconOptions): Icon.Default;
imagePath: string;
};
}
interface Icon extends Leaflet.Icon {
options: AwesomeMarkers.IconOptions;
}
interface IconOptions extends Leaflet.IconOptions {
icon?: string | undefined;
prefix?: "fa" | "glyphicon" | undefined;
markerColor?:
| "red"
| "darkred"
| "orange"
| "green"
| "darkgreen"
| "blue"
| "purple"
| "darkpurple"
| "cadetblue"
| undefined;
iconColor?: "white" | "black" | string | undefined;
spin?: boolean | undefined;
extraClasses?: string | undefined;
}
var Icon: AwesomeMarkers.IconStatic;
}
}
}
Additional Details
- Last updated: Wed, 18 Oct 2023 05:47:07 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by Egor Komarov, and Marcel Sebek.