Class: SetLayersInfoParameters

SetLayersInfoParameters

设置图层信息参数类。

new SetLayersInfoParameters(options)

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

</script>

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

new SetLayersInfoParameters(options);

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

参数。

Name Type Default Description
isTempLayers boolean false 可选

是否是临时图层。

resourceID string

临时图层资源 ID。

layersInfo Object

要更新的图层信息。

Members

isTempLayersboolean

是否是临时图层。

layersInfoObject

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

resourceIDstring

临时图层资源 ID。

Methods

destroy()

common/iServer/SetLayersInfoParameters.js, line 44

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