我需要使用标记在我的phonegap App中显示谷歌地图。
我在下面提到了我的代码。它在chrome中运行良好,但在ios中无效
我甚至无法在设备上看到地图。请给我一些可以在这里工作的解决方案。
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);