Class: tiledVectorLayer

tiledVectorLayer

SuperMap iServer的矢量瓦片图层

L.supermap.tiledVectorLayer(url, options)

leaflet/overlay/TileVectorLayer.js, line 8
Name Type Description
url string

图层数据服务地址

options Object

图层可选参数

Example
L.supermap.tiledVectorLayer(url).addTo(map);

Extends

Methods

inherited getDataLayerNames(){Array}

leaflet/overlay/vectortile/VectorGrid.js, line 153

获取数据图层名字

Returns:
Type Description
Array 返回数据图层名数组

getLayerStyleInfo(layerName)

leaflet/overlay/TileVectorLayer.js, line 123

获取图层样式信息

Name Type Description
layerName string

图层名称

getScale(zoom){number}

leaflet/overlay/TileVectorLayer.js, line 274

通过缩放级别获取比例尺

Name Type Description
zoom number

缩放级别

Returns:
Type Description
number 比例尺

getScaleFromCoords(coords){number}

leaflet/overlay/TileVectorLayer.js, line 287

通过行列号获取比例尺

Name Type Description
coords Object

行列号

Returns:
Type Description
number 比例尺

inherited getStyle(layerName){Object}

leaflet/overlay/vectortile/VectorGrid.js, line 96

获取指定图层样式

Name Type Description
layerName string

图层名称

Returns:
Type Description
Object 指定图层的样式

inherited getStyles(){Object}

leaflet/overlay/vectortile/VectorGrid.js, line 87

获取图层样式

Returns:
Type Description
Object 所有图层的样式

inherited resetFeatureStyle(id, layerName){this}

leaflet/overlay/vectortile/VectorGrid.js, line 130

重绘要素风格,需要id和layerName才能确定一个要素

Name Type Description
id number

要素id

layerName string

图层名称

Returns:
Type Description
this this

setClientCartoCSS()

leaflet/overlay/TileVectorLayer.js, line 202

客户端设置cartoCSS样式

inherited setFeatureStyle(id, layerName, layerStyle){this}

leaflet/overlay/vectortile/VectorGrid.js, line 106

设置要素风格,需要id和layerName才能确定一个要素

Name Type Description
id number

要素id

layerName string

图层名称

layerStyle Array | function

图层样式

Returns:
Type Description
this this