【问题标题】:Google Maps API v3 in internet explorer 9 doesn't loadInternet Explorer 9 中的 Google Maps API v3 无法加载
【发布时间】:2012-02-23 17:33:16
【问题描述】:

我在 Internet Explorer 中加载 Google Maps API V3 时遇到问题。以下是我已经做过的事情的清单:

  1. 查看了这个link,因为显然谷歌以前听过来自IE用户的抱怨。这些东西都没有解决我的问题。
  2. 从 IE9 测试 maps.google.com。从那里可以正常工作,但我的页面不能。
  3. 网页设计师说她可以间歇性地将它加载到 IE 中。我从来没有能够。所以看起来有些随机。
  4. 我杀死了我的代码中的所有内容除了用于谷歌地图的东西,它仍然没有飞行。
  5. 我看到了this,它说代码中的逗号可能有问题。我没有这些。我确实广泛使用了 jquery 和 dojo,但我不认为这会是一个问题,不是吗?
  6. 当然,它在 Chrome、FF、Safari 等中运行良好。只是 IE9 的问题。

有人有什么想法吗?

这是我的初始化函数中的内容,它在主体加载后被调用。

      var map;


      function initialize() {

        var myOptions = {
          center: new google.maps.LatLng(38.97, -94.72),
          zoom: 13,
          scaleControl:true,
          mapTypeId: google.maps.MapTypeId.ROADMAP

        };
        map = new google.maps.Map(document.getElementById("map_canvas"),
            myOptions);
}

【问题讨论】:

标签: jquery google-maps dojo internet-explorer-9


【解决方案1】:

您已添加兼容模式的元标记并将其设置为 IE7。设置为IE8

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    • 2011-07-25
    • 2013-05-04
    • 1970-01-01
    • 2022-01-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多