我正在使用 cordova 应用程序,对于 map ,我让客户使用 ajax 调用从网站后端下载“iframe” fragment 。我必须这样做,因为所有者必须上传不同 map 的代码。所以问题是这在手机上就像一个魅力,但在 samsung galaxy tab 3 和 iphone 上 map 没有显示。 iframe 正在充电但为空。 (我认为 map 没有渲染)
最佳答案
检查你的错误控制台,如果它出现类似的东西:
ERROR Internal navigation rejected - <allow-navigation> not set for url='http://maps.google.com
把它放在 config.xml 上
<allow-navigation href="*"/>
这对我有用
关于javascript - google maps iframe on cordova, tablet and ios 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36723481/