Google Maps error: Oops! Something went wrong. This page didn't load Google Maps correctly

后端 未结 5 1749
半阙折子戏
半阙折子戏 2021-01-11 19:13

First time asking on stackoverflow, so be patient if I break some rule, tried my best to solve by myself searching for a solution, but had no luck.

I used a tool to

5条回答
  •  一生所求
    2021-01-11 19:42

    I have an api key, the maps all load fine with web pages on the computer... but not while loading the same pages and maps on a mobile, this goes for normal web page maps and mobile web page maps... computer fine but mobile returns the Sorry! Something went wrong. This page didn't load Google Maps correctly! See Javascript console.... but javascript console doesn't return any errors! I have checked the web pages that load the maps on iPhone and Samsung and they return the error, same pages from a computer browser and they load without error, same urls!

    So eventually I discovered the error: I added the url in the Google maps api account with www.domain.... while this did not appear to be an issue with browsers on my computer, it did on mobile phones... so I found that adding 2 URL's in the api www.domain.com/page and domain.com/page fixed the error, and the maps loaded on mobile devices as well as on computers!

提交回复
热议问题