Class: SetLayerInfoParameters

SetLayerInfoParameters

设置图层信息参数类。此类可用于设置临时图层下子图层信息的相关参数。

new SetLayerInfoParameters(options)

Usage
import { SetLayerInfoParameters } from '@supermapgis/iclient-leaflet';

new SetLayerInfoParameters(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.SetLayerInfoParameters({paramsNames});
  // 弃用的写法
  new SuperMap.SetLayerInfoParameters(options);
</script>
common/iServer/SetLayerInfoParameters.js, line 6
Name Type Description
options Object

参数。

Name Type Description
resourceID string

临时图层的资源 ID。

tempLayerName string

临时图层下的子图层名称。

layerInfo string

要更新的图层信息。

API Relations

As method parameter: LayerInfoService.setLayerInfo.

Members

layerInfoObject

要更新的图层信息(包含修改和未修改的所有字段)。该参数可以通过图层信息服务获取,然后对返回值中 subLayers.layers[i] 图层信息属性进行修改。

resourceIDstring

临时图层的资源 ID。

tempLayerNamestring

临时图层下子图层(或者其子图层)名,如:Countries@World.3@@World。

Methods

destroy()

common/iServer/SetLayerInfoParameters.js, line 44

释放资源,将引用资源的属性置空。