2012-11-11 27 views
1

我有這個JS加載了谷歌地圖API谷歌地圖和IE8變焦+信息窗口問題

function initialize() { 
    var mapOptions = { center: new google.maps.LatLng(41.123105, -73.370886), 
     zoom: 8, 
     mapTypeId: google.maps.MapTypeId.ROADMAP 
    }; 

    var map = new google.maps.Map(document.getElementById('mapCanvas'), mapOptions); 
} 

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

以上JS被放置在一個文件並加載這個谷歌地圖API調用後

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false" type="text/javascript"></script> 
<script src="/Style Library/js/locationmap.js" type="text/javascript"></script> 

上述標籤是在頭部和HTML是如下

<div class="locationsMap"> 
    <div style="display: none;"> 
     <asp:Label runat="server" ID="lblCenterLatLng" CssClass="divCenterLatLng" /> 
    </div> 
    <div id="mapCanvas" class="mapCanvas" style="width: 450px; height: 450px;" /> 
</div> 

我想我應該說,所有這一切都是在SharePoi發生nt Web Part,但它在IE9中按預期工作。

當地圖在IE8中放大時,地圖消失並呈白色。有任何想法嗎?

感謝

+0

檢查IE8特定的CSS – geocodezip

+0

是的,我是用了盒陰影MS過濾器的CSS屬性。我刪除了,並最終使用CSS 3餅。我如何將其標記爲完整? – iJK

回答