szgeoinfo.layer.WMTSLayer

Class: szgeoinfo.layer.WMTSLayer



new WMTSLayer(id,name,url,projstr,opacity)

WMTS图层

Parameters:
Name Type Description
id string

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

name string

图层名称

url string

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

projstr string

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

tileMatrixSetID string

TileMatrixSet的标识符,默认为default028mm

format string

瓦片图片的格式, 默认为image/jpeg

style string

wmts请求的样式,默认为default

Example
 var url='http://localhost:6080/arcgis/rest/services/baseMap/basemap_23d_3857_03/MapServer';
 var wmts= new szgeoinfo.layer.WMTSLayer(123,'图层',url);
 map.addWMTSLayer(wmts);