Incompatibility with geocodezip map in internet explorer (any version)

青春壹個敷衍的年華 提交于 2019-12-25 01:36:00

问题


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


回答1:


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);



回答2:


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



来源:https://stackoverflow.com/questions/16721157/incompatibility-with-geocodezip-map-in-internet-explorer-any-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!