forked from Leaflet/Leaflet.fullscreen
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.d.ts
39 lines (31 loc) · 1.02 KB
/
index.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
// Type definitions for leaflet-fullscreen 1.0.2
// Project: https://github.com/Leaflet/Leaflet.fullscreen
// Original Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Updated by : Paul Harwood <https://github.com/runette>
import {Control, ControlOptions} from 'leaflet';
declare module 'leaflet' {
interface MapOptions {
fullscreenControl?: boolean | FullscreenOptions;
}
interface FullscreenOptions extends ControlOptions {
pseudoFullscreen?: boolean
title?: {
'false': string,
'true': string
}
}
type fullscreenOptions = FullscreenOptions;
interface Map {
isFullscreen(): boolean;
toggleFullscreen(): void;
}
namespace control {
function fullscreen(options: FullscreenOptions): Control.Fullscreen;
}
namespace Control {
export class Fullscreen extends Control{
constructor (options: FullscreenOptions);
options: FullscreenOptions;
}
}
}