本文介绍了与Internet Explorer中的geocodezip地图不兼容(任何版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这张地图,作为的答案。它使用geocodezip并运行良好,但它在Internet Explorer中不起作用。你可以向我推荐任何解决方案吗?
这是地图的链接:
这是它在其他浏览器中的样子
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 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地图不兼容(任何版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!