我正在使用 Ionic Framework 和 AngularJS 开发一个 Phonegap 应用程序,我必须将两个地图放在不同的页面中。我得到了一个空白窗口
在app.js中
.run(function () {
ionic.Platform.ready(function () {
var div = document.getElementById("map_canvas1");
alert('deviceready');
alert(window.plugin);
// map = window.plugin.google.maps.Map.getMap(div);
if (window.plugin) {
alert(1);
map = window.plugin.google.maps.Map.getMap(div);
}
});
})
我的html页面
<div class="modal">
<ion-header-bar class="bar-positive">
<button menu-toggle="right" class="button button-icon icon ion-navicon"></button>
<h1 class="title">Géolocalisation</h1>
</ion-header-bar>
<ion-content>
<div style="width:90%;margin-left:10%;height:500px" id="map_canvas1"></div>
</ion-content>
</div>
我在 logcat 中收到此错误
11-11 17:33:38.823: E/GooglePlayServicesUtil(10062): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
11-11 17:33:40.367: E/GooglePlayServicesUtil(10062): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
11-11 17:33:40.732: E/NativeCrypto(10062): ssl=0x53d54c10 cert_verify_callback x509_store_ctx=0x57b8dae8 arg=0x0
11-11 17:33:40.732: E/NativeCrypto(10062): ssl=0x53d54c10 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_ECDSA