Skip to content

Fix iOS browser not loading because they do not support FullScreen API

Andrés requested to merge fix/ios-not-loading-maps into main

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:

image

We defend from failing

That button it's not shown in iOS but the rest of the map loads image

DEMO

I deployed this branch loading from an iframe https://maps-in-iframe.netlify.app

Edited by Andrés

Merge request reports