科尔多瓦:谷歌地图v3没有在iOS

时间:2015-09-16 08:22:38

标签: javascript android ios cordova google-maps

我正在构建一个cordova应用程序,因为三天后我遇到了问题..我尝试了在Stack或Google上发现的所有内容。我的观点是我可以在Android上显示谷歌地图,但不能在iOS上显示。只有一个灰色的div。在调试时,单击此div时,我收到此错误: TypeError:undefined不是对象(评估' a.x')

另一件事:我有一个Gif加载器停留在灰色div上,它应该在map div下面。

我在使用或不使用API​​密钥时使用gmap v3:同样的问题。 我复制了我的config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="co.brandyapp.applitest8" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>applitest8</name>
<description>
    A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
    Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*.google.com" />
<access origin="*.gstatic.com" />
<access origin="*.googleapis.com" />
<access origin="*.brandyapp.co" />
<allow-navigation href="http://*.google.com" />
<allow-navigation href="http://*.googleapis.com/*" />
<allow-navigation href="http://*.gstatic.com/*" />
<allow-navigation href="http://*.brandyapp.co/*" />
<plugin name="cordova-plugin-whitelist" version="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
    <allow-intent href="market:*" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
</platform>
</widget>

奇怪的是我在这个tuto上遇到了同样的问题: http://www.christianengvall.se/phonegap-and-google-maps/

感谢您的帮助!这个问题让我抓狂! :)

0 个答案:

没有答案