我已经创建了一个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)
}
);