与Internet Explorer中的geocodezip地图不兼容(任何版本) [英] Incompatibility with geocodezip map in internet explorer (any version)

查看:179
本文介绍了与Internet Explorer中的geocodezip地图不兼容(任何版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这张地图,作为这个其他问题的答案。它使用geocodezip并运行良好,但它在Internet Explorer中不起作用。你可以向我推荐任何解决方案吗?



这是地图的链接:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip。 COM / xmlProxy060215.asp?HTTPS%3A%2F%2Fmaps.google.com%2Fmaps%2Fms%3Fhl%3Den%26ie%3DUTF8%26oe%3DUTF8%26authuser%3D0%26msa%3D0%26output%3Dkml%26msid%3D216330649072490208011。 0004daf6e6bfde8dd857d



这是它在其他浏览器中的样子
stack.imgur.com/dzbhJ.pngalt =enter image description他



非常感谢

解决方案

代码:

 函数初始化(){
var mapOptions = {
zoom:4,
center:new google.maps.LatLng(-33,151),
disableDefaultUI:true,
mapTypeId:google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
}

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


I have this map, as an answer of this other question. It uses geocodezip and works well, but it is not working in Internet Explorer. Can you suggest me any solution?

This is the link of the map: http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip.com/xmlProxy060215.asp?https%3A%2F%2Fmaps.google.com%2Fmaps%2Fms%3Fhl%3Den%26ie%3DUTF8%26oe%3DUTF8%26authuser%3D0%26msa%3D0%26output%3Dkml%26msid%3D216330649072490208011.0004daf6e6bfde8dd857d

This is how it looks in other browsers

This is how it looks in intenet explorer

Thank you very much

解决方案

here's a sample code:

function initialize() {
  var mapOptions = {
    zoom: 4,
    center: new google.maps.LatLng(-33, 151),
    disableDefaultUI: true,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById('map-canvas'),
                                mapOptions);
}

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

这篇关于与Internet Explorer中的geocodezip地图不兼容(任何版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆