Fix iOS browser not loading because they do not support FullScreen API
MR created by Andrés
We use a JS packages called screenfull
. It's used to interact with
browser Fullscreen API.
The problem as explained in this issue it's that iOS fails to even load
it:
https://github.com/sindresorhus/screenfull/issues/164
The fix is to try catch before showing full screen button.
The fail was in this button:
We defend from failing
That button it's not shown in iOS but the rest of the map loads
DEMO
I deployed this branch loading from an iframe
https://maps-in-iframe.netlify.app
Edited by Dani Quilez