Hello,
I made a few (simple) adjustments to the full-screen widget that now allows the user to have a complete full-screen and map-focused experience, by hiding all* widgets.
Before -
After -
Deployment:
1. Add the default full-screen widget to your Web AppBuilder application and save.
2. Overwrite the fullscreen folder with the custom code provided.
Bonus feature - Attaching the widget to the F11 key:
Open MapManager.js under the jimu.js folder on the application.
Add the following code inside the "_publishMapEvent" function -
on(
window,
'keydown',
(e) => {
if (e.key === "F11") {
var fs = WidgetManager.getInstance().getWidgetsByName('FullScreen');
if (fs.length > 0) {
fs = fs[0];
fs._onFullScreenClick();
}
}
}
);
Happy to receive feedbacks. Quite simple, but hopefully some people will find it usefull.
Cheers,
Shay.