forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaflet.awesome-markers.d.ts
68 lines (54 loc) · 1.98 KB
/
leaflet.awesome-markers.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Type definitions for Leaflet.awesome-markers plugin v2.0
// Project: https://github.com/lvoogdt/Leaflet.awesome-markers
// Definitions by: Egor Komarov <https://github.com/Odrin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../leaflet/leaflet.d.ts" />
declare module L {
module AwesomeMarkers {
var version: string;
function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon;
interface IconStatic extends L.IconStatic {
/**
* Creates an icon instance with the given options.
*/
new (options: IconOptions): Icon;
Default: {
/**
* Creates a default icon instance with the given options.
*/
new (options?: IconOptions): Icon.Default;
imagePath: string;
};
}
interface Icon extends L.Icon {
options: AwesomeMarkers.IconOptions;
}
interface IconOptions extends L.IconOptions {
/**
* Name of the icon. See glyphicons or font-awesome.
*/
icon?: string;
/**
* Select de icon library. 'fa' for font-awesome or 'glyphicon' for bootstrap 3.
*/
prefix?: 'fa' | 'glyphicon';
/**
* Color of the marker
*/
markerColor?: 'red' | 'darkred' | 'orange' | 'green' | 'darkgreen' | 'blue' | 'purple' | 'darkpuple' | 'cadetblue';
/**
* Color of the icon. 'white', 'black' or css code (hex, rgba etc).
*/
iconColor?: 'white' | 'black' | string;
/**
* Make the icon spin. true or false. Font-awesome required
*/
spin?: boolean;
/**
* Additional classes in the created tag
*/
extraClasses?: string;
}
var Icon: AwesomeMarkers.IconStatic;
}
}