Closed paodb closed 5 months ago
The GoogleMap.java
file in the com.flowingcode.vaadin.addons.googlemaps
package has been enhanced to manage full-screen mode. Two new methods, addFullScreenListener
and closeFullScreen
, and a nested class FullScreenEvent
have been added to facilitate handling full-screen events and programmatically closing full-screen mode.
File Path | Change Summary |
---|---|
src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java |
Added methods addFullScreenListener and closeFullScreen , and nested class FullScreenEvent to handle full-screen events. |
Objective | Addressed | Explanation |
---|---|---|
Ability to listen to full-screen events (#130) | β | |
API to revert to non full-screen mode programmatically (#130) | β | |
Provide user feedback or hint regarding dialog visibility in full-screen mode (#130) | β | No specific user feedback or hints are implemented to inform users about dialog visibility in full-screen mode. |
In the land of maps, a change unfolds,
Full-screen mode, a story told.
With listeners keen and methods bright,
Dialogs hidden now in sight.
A rabbit's cheer for code so grand,
Enhancing maps across the land.
πΊοΈβ¨π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Close #130.
This PR adds a listener to know whether the map is in full screen mode. Also a method to allow to close the full scrren mode programmatically was added.
The enhancement is based on this investigation https://github.com/FlowingCode/GoogleMapsAddon/issues/130#issuecomment-2153396439
The example in the comment would now be reduced to add a FullScreenEvent listener by calling
addFullScreenListener
and callingcloseFullScreen
method if full screen mode is on:Summary by CodeRabbit