使用cordova插件google maps Ionic框架显示空白屏幕

使用cordova插件google maps Ionic框架显示空白屏幕,cordova,google-maps,ionic-framework,google-maps-api-2,Cordova,Google Maps,Ionic Framework,Google Maps Api 2,我刚在我的爱奥尼亚应用程序中使用cordova google maps。当在我的应用程序中使用此插件时,我的屏幕变得空白,就像 我按照中提到的一步一步地做 为Android设备生成有效的google maps API密钥 这是我写的代码 <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1">

我刚在我的爱奥尼亚应用程序中使用cordova google maps。当在我的应用程序中使用此插件时,我的屏幕变得空白,就像

我按照中提到的一步一步地做

为Android设备生成有效的google maps API密钥

这是我写的代码

<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">
var map;
document.addEventListener("deviceready", function() {
  var div = document.getElementById("map_canvas");

  // Initialize the map view
  map = plugin.google.maps.Map.getMap(div);

  // Wait until the map is ready status.
  map.addEventListener(plugin.google.maps.event.MAP_READY, onMapReady);
}, false);

function onMapReady() {
  var button = document.getElementById("button");
  button.addEventListener("click", onBtnClicked, false);
}

function onBtnClicked() {
  map.showDialog();
}
</script>
</head>
<body>
 <h3>PhoneGap-GoogleMaps-Plugin</h3>
 <div style="width:100%;height:400px" id="map_canvas"></div>
 <button id="button">Full Screen</button>
</body>
</html>

var映射;
document.addEventListener(“deviceready”,函数(){
var div=document.getElementById(“映射画布”);
//初始化地图视图
map=plugin.google.maps.map.getMap(div);
//等待地图处于就绪状态。
addEventListener(plugin.google.maps.event.map_READY,onMapReady);
},假);
函数onMapReady(){
var button=document.getElementById(“按钮”);
按钮。addEventListener(“单击”,点击,错误);
}
函数onBtnClicked(){
showDialog();
}
PhoneGap谷歌地图插件
全屏

请帮助我任何人。

请提供造成问题的最小代码。您好@StephenReindl您能再次看到我更新了查询。。。