Incompatibility with geocodezip map in internet ex

2019-08-29 04:07发布

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 enter image description here

This is how it looks in intenet explorer enter image description here

Thank you very much

2条回答
狗以群分
2楼-- · 2019-08-29 04:40

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);
查看更多
ら.Afraid
3楼-- · 2019-08-29 04:47

The root cause is a difference in the way character encoding is handled in IE, IE is detecting an invalid character in the XML.

Error Message

查看更多
登录 后发表回答