您的位置:首页 > 运维架构

openlayers.layer.WMS

2013-12-10 19:05 288 查看

参数

 

name      {string}  A name for the layer,

url           {string}  Base url for the WMS(e.g. http://wms.jpl.nasa.gov/wms.cgi)
params    {object} An object with key/value parirs representing the GetMap query string parameters and parameter values

oprions    {Object} Hashtable of extra options to tag onto the layer.  These options include all properties listed above, plus the ones inherited from superclasses.(可省)

 

例子

var wms =new OpenLayers.Layer.WMS(

"图层名称",

"http://wms.jpl.nasa.gov/wms.cgi",

{layers:"modis,global_mosaic"}

);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: