diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java index c79f4cc..fb4d702 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java @@ -841,4 +841,12 @@ public boolean isFullScreen() { } } + /** + * Exits the full screen mode on the map. + */ + public void closeFullScreen() { + this.getElement() + .executeJs("document.exitFullScreen = true; document.exitFullscreen();"); + } + }