Class: SetLayerInfoParameters

SetLayerInfoParameters

设置图层信息参数类。

new SetLayerInfoParameters(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
  new mapboxgl.supermap.SetLayerInfoParameters(options);
  
  // 弃用的写法
  new SuperMap.SetLayerInfoParameters(options);

</script>

// ES6 Import
import { SetLayerInfoParameters } from '@supermap/iclient-mapboxgl';

new SetLayerInfoParameters(options);

common/iServer/SetLayerInfoParameters.js, line 6
Name Type Description
options Object

参数。

Name Type Description
resourceID string

临时图层的资源 ID。

tempLayerName string

临时图层下的子图层名。

layerInfo string

要更新的图层信息。

Members

layerInfoObject

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

resourceIDstring

临时图层的资源 ID。

tempLayerNamestring

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

Methods

destroy()

common/iServer/SetLayerInfoParameters.js, line 44

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