Skip to content

Commit 3d65ab6

Browse files
paodbjavier-godoy
authored andcommitted
feat: allow to close full screen mode
Close #130
1 parent 743b366 commit 3d65ab6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,4 +841,12 @@ public boolean isFullScreen() {
841841
}
842842
}
843843

844+
/**
845+
* Exits the full screen mode on the map.
846+
*/
847+
public void closeFullScreen() {
848+
this.getElement()
849+
.executeJs("document.exitFullscreen();");
850+
}
851+
844852
}

0 commit comments

Comments
 (0)