gpt4 book ai didi

javascript - google maps iframe on cordova, tablet and ios 问题

转载 作者:行者123 更新时间:2023-11-30 01:23:50 27 4
gpt4 key购买 nike

我正在使用 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com