Skip to content

Commit c4df2bf

Browse files
committed
change file names to match that of npm and bower
1 parent 68186ad commit c4df2bf

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

leaflet-fullscreen/leaflet-fullscreen-tests.ts renamed to leaflet.fullscreen/leaflet.fullscreen-tests.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
/// <reference path="leaflet-fullscreen.d.ts" />
1+
/// <reference path="leaflet.fullscreen.d.ts" />
22

33
var map: L.Map;
4+
5+
// Defaults
46
var icon: L.Control.Fullscreen = L.control.fullscreen({
57
position: 'topleft',
68
title: 'Full Screen',
@@ -10,3 +12,12 @@ var icon: L.Control.Fullscreen = L.control.fullscreen({
1012
});
1113

1214
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);

leaflet-fullscreen/leaflet-fullscreen.d.ts renamed to leaflet.fullscreen/leaflet.fullscreen.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare module L {
1212
export interface Fullscreen extends L.Control {}
1313

1414
export interface FullscreenOptions {
15+
content?: string,
1516
position?: string,
1617
title?: string,
1718
titleCancel?: string,

0 commit comments

Comments
 (0)