0
我已經創建了一個OpenLayers.Layer.WMS,並且我能夠查看我預期會覆蓋的圖片。但它的傳播遍佈地圖。請檢查我的代碼,並讓我知道我犯的錯誤。是否有可能爲OpenLayers.Layer.WMS添加邊界
var dm_wms = new OpenLayers.Layer.WMS("DM Solutions Demo",
"http://4.bp.blogspot.com/_lxtIPm_77I0/TJgxuFj5VqI/AAAAAAAAAW0/5QgltGCSviU/s1600/yellowrose.jpg",
{
layers: "basic",
transparent: "true",
format: "image/png"
}, {
opacity: 0.3,
singleTile: true,
maxExtent: new OpenLayers.Bounds(-74.047185, 40.679648, -50.907005, 30.882078)
}
);
你有什麼進展嗎? –