phonegap ios应用程序地图与标记

时间:2015-05-27 14:40:56

标签: cordova jquery-mobile google-maps-api-3

我需要使用标记在我的phonegap App中显示谷歌地图。

我在下面提到了我的代码。它在chrome中运行良好,但在ios中无效 我甚至无法在设备上看到地图。请给我一些可以在这里工作的解决方案。 enter image description here

 function initialize() {
var mapOptions = {
 zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644), mapTypeControl: false
};
 map = new google.maps.Map(document.getElementById('map-canvas'),
 mapOptions);

}

google.maps.event.addDomListener(window, 'load', initialize);    

0 个答案:

没有答案