File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
- /// <reference path="leaflet- fullscreen.d.ts" />
1
+ /// <reference path="leaflet. fullscreen.d.ts" />
2
2
3
3
var map : L . Map ;
4
+
5
+ // Defaults
4
6
var icon : L . Control . Fullscreen = L . control . fullscreen ( {
5
7
position : 'topleft' ,
6
8
title : 'Full Screen' ,
@@ -10,3 +12,12 @@ var icon: L.Control.Fullscreen = L.control.fullscreen({
10
12
} ) ;
11
13
12
14
icon . addTo ( map ) ;
15
+
16
+
17
+ // My Usage
18
+
19
+ L . control . fullscreen ( {
20
+ position : 'topleft' ,
21
+ content : '<i class="fa fa-arrows-alt"></i>' ,
22
+ forceSeparateButton : true ,
23
+ } ) . addTo ( map ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ declare module L {
12
12
export interface Fullscreen extends L . Control { }
13
13
14
14
export interface FullscreenOptions {
15
+ content ?: string ,
15
16
position ?: string ,
16
17
title ?: string ,
17
18
titleCancel ?: string ,
You can’t perform that action at this time.
0 commit comments