问题
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