szgeoinfo.layer.WMSLayer

Class: szgeoinfo.layer.WMSLayer



new WMSLayer(id, name, aliasName, url, projstr, serverType)

WMS图层

Parameters:
Name Type Description
id string

图层Id,可以根据Id 查询操作图层

name string

wms服务名称, 服务为GeoServer必填

aliasName string

wms服务中文名

url string

wms服务url,如http://localhost/arcgis/services/modelmap/MapServer

projstr string

坐标系编号,默认EPSG:3857,同时支持EPSG:4326、EPSG:4490 WGS84

serverType string

wms服务器的类别,默认"ArcGIS Server",例如ArcGIS Server、GeoServer

Example
var wmc=new szgeoinfo.layer.WMSLayer(1,"USA_Population_Density","海岸线","https://localhost/arcgis/rest/services/Demographics/USA_Population_Density/MapServer");
 map.addWMSLayer(wmc);