Class: TileMatrixSet

TileMatrixSet

new TileMatrixSet(options)

base/TileMatrixSet.js, line 5

IGS地图服务图层

Name Type Description
options Object

构造参数

Name Type Default Description
extent Extent 可选

图层范围

id String getGUID() 可选

图块矩阵集id

tileInfo String 可选

切片信息

layer WMTSLayer 可选

图层

tileMatrix Array [] 可选

矩阵集

identifier String 可选

矩阵identifier

supportedCRS String 可选

支持的CRS

Members

extentExtent

图层范围

idString

图块矩阵集id

identifierString

矩阵identifier

layerWMTSLayer

图层,toJSON方法不会导出该属性

supportedCRSString

支持的CRS

tileInfoTileInfo

切片信息

tileMatrixArray

矩阵集

Methods

clone(){TileMatrixSet}

base/TileMatrixSet.js, line 102

克隆图块矩阵集对象

Returns:
Type Description
TileMatrixSet 克隆后的图块矩阵集对象

fromJSON(json){TileMatrixSet}

base/TileMatrixSet.js, line 106

将JSON格式的图块矩阵集参数转换为JS对象

Name Type Description
json Object

图块矩阵集的实例化JSON

Returns:
Type Description
TileMatrixSet 新的TileMatrixSet对象

getTileResolution(pxRes, isGeographic){Number}

base/TileMatrixSet.js, line 61

获取切片分辨率

Name Type Description
pxRes Number

切片像素单位长度,代表1像素是多少毫米,默认值为0.28mm(90.71DPI)

isGeographic Boolean

是否为经纬度坐标,默认值为false

Returns:
Type Description
Number 分辨率数组

toJSON(){Object}

base/TileMatrixSet.js, line 82

将JS对象转换为JSON格式

Returns:
Type Description
Object 图块矩阵集的实例化JSON