2011-08-03 193 views
0

在Internet Explorer 8中,我的bing地图上没有任何多边形具有适当的填充颜色。它们总是以白色填充。我在Firefox,Chrome,Safari或Opera中没有问题。Bing地图ajax控件7.0多边形fillColor在IE8中

我已经使用完全相同的代码从兵文档

// Initialize the map 
var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {credentials:"Bing Maps Key"}); 

// Create the locations 
var location1 = new Microsoft.Maps.Location(20,-20); 
var location2 = new Microsoft.Maps.Location(20,20); 
var location3 = new Microsoft.Maps.Location(-20,20); 
var location4 = new Microsoft.Maps.Location(-20,-20); 


// Create a polygon 
var vertices = new Array(location1, location2, location3, location4, location1); 
var polygoncolor = new Microsoft.Maps.Color(100,100,0,100); 
var polygon = new Microsoft.Maps.Polygon(vertices,{fillColor: polygoncolor, strokeColor: polygoncolor}); 

// Add the shape to the map 
map.entities.push(polygon) 

// Set the view 
map.setView({bounds: Microsoft.Maps.LocationRect.fromLocations(vertices)}); 

有没有人遇到过这种甚至试图?

我也在使用jquery 1.5.1

回答

0

找出问题所在。

我在IE中使用了一个htc文件(ie-css3.htc)来处理一些css3效果。我想这不能很好地与bing地图多边形颜色搭配。

相关问题