Class: childPlotLayer

L.supermap.plotting.childPlotLayer

子图层类。

L.supermap.plotting.childPlotLayer(name, options)

leaflet/mapping/ChildPlotLayer.js, line 9
Name Type Description
name string

子图层名称。

options Object

子图层参数。

Name Type Default Description
caption string "子图层" 可选

子图层显示名称。

visibility boolean true 可选

图层可见。

Methods

getFeatures()

leaflet/mapping/ChildPlotLayer.js, line 208

获取当前子图层所有的标号。

getParent(){PlottingLayer}

leaflet/mapping/ChildPlotLayer.js, line 69

获取父类图层。

Returns:
Type Description
PlottingLayer 返回父图层。

getVisibility(){boolean}

leaflet/mapping/ChildPlotLayer.js, line 88

获取子图层的可见性。

Returns:
Type Description
boolean 返回子图层是否可见。

setVisibility(visibility)

leaflet/mapping/ChildPlotLayer.js, line 97

设置子图层可见性,设置子图层的隐藏、显示、重绘的相应可见标记。

Name Type Description
visibility boolean

是否显示子图层。