0

我已经通过 jqueryMobile 和 jquery 在 My Web App 中显示了谷歌地图。

 <script type="text/javascript">
  function initialize() {
    var mapOptions = {
      center: new google.maps.LatLng(-34.397, 150.644),
      zoom: 8,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map-canvas"),
        mapOptions);
  }
  google.maps.event.addDomListener(window, 'load', initialize);
</script>

 It is showing Well in Web.
  But when I open this page in my iPhone through Web view
 G MAP is not showing at all.
 Please help ....
4

1 回答 1

0

我将协议从 SSL (https) 更改为 http,代码现在可以工作了!

从:

src= " https://maps.googleapis.com

src= " http://maps.googleapis.com

于 2013-07-17T12:58:12.840 回答