forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
36 lines (31 loc) · 1.02 KB
/
index.d.ts
File metadata and controls
36 lines (31 loc) · 1.02 KB
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
import * as L from "leaflet";
declare module "leaflet" {
namespace Control {
class Fullscreen extends Control {
constructor(options?: FullscreenOptions);
options: FullscreenOptions;
}
interface FullscreenOptions {
content?: string | undefined;
position?: ControlPosition | undefined;
title?: string | undefined;
titleCancel?: string | undefined;
forceSeparateButton?: boolean | undefined;
forcePseudoFullscreen?: boolean | undefined;
fullscreenElement?: false | HTMLElement | undefined;
}
}
namespace control {
/**
* Creates a fullscreen control.
*/
function fullscreen(options?: Control.FullscreenOptions): Control.Fullscreen;
}
interface MapOptions {
fullscreenControl?: boolean | undefined;
fullscreenControlOptions?: Control.FullscreenOptions | undefined;
}
interface Map {
toggleFullScreen(): void;
}
}