Hi Guys, Our maps don't work on iphone, any iphone, they work on iPads. Any idea why this is? Here's an example: https://www.colmcille.org/en/map-marker-route/gleann-cholm-cille/ asked 23 Nov '21, 12:42 DavidHenry edited 23 Nov '21, 14:13 SK53 ♦ |
One Answer:
First rule of computer problem-solving: don't use the phrase "it doesn't work". It's not helpful. Instead: What do you expect to happen? What happens instead? Can you give screenshots? Here's what I'd do to debug:
When I do this, I see the following errors:
So you've got a problem with the code in Control.FullScreen.js, i.e. the Leaflet full-screen control that you're using. There appear to be some reported issues with it on the iPhone: see https://github.com/Leaflet/Leaflet.fullscreen/issues . Try removing this plugin and trying again. This is basic JavaScript debugging, not specific to OSM. If your developer doesn't know how to do this you should possibly get a new developer. answered 23 Nov '21, 13:51 Richard ♦ edited 23 Nov '21, 14:53 |
Thanks Richard, this got us started on the fix :)
Just to confirm, the issue was on iPhone devices the map showed as grey so the tiles were not loading. Fixing an error in our custom leaflet.js fixed it.