Interface WithFullScreenControl
public interface WithFullScreenControl
Exposes the fullscreen control API, allowing listeners to be notified when the
map enters or exits fullscreen mode and the fullscreen state to be toggled.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEnterFullscreen(LeafletEventListener<LeafletEvent> listener) Fired when map entered to full screen modevoidonExitFullscreen(LeafletEventListener<LeafletEvent> listener) Fired when map exited from full screen modevoidToggles the map between fullscreen and normal mode.
-
Method Details
-
onEnterFullscreen
Fired when map entered to full screen mode- Parameters:
listener- the listener to call when the event occurs, notnull
-
onExitFullscreen
Fired when map exited from full screen mode- Parameters:
listener- the listener to call when the event occurs, notnull
-
toggleFullscreen
void toggleFullscreen()Toggles the map between fullscreen and normal mode.
-