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