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 '@supermapgis/iclient-mapboxgl';
new SetLayerInfoParameters(options);
common/iServer/SetLayerInfoParameters.js, line 6
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
Members
-
layerInfoObject
-
要更新的图层信息(包含修改和未修改的所有字段)。该参数可以通过图层信息服务获取,然后对返回值中 subLayers.layers[i] 图层信息属性进行修改。
-
resourceIDstring
-
临时图层的资源 ID。
-
tempLayerNamestring
-
临时图层下子图层(或者其子图层)名,如:Countries@World.3@@World。
Methods
-
destroy()
common/iServer/SetLayerInfoParameters.js, line 44 -
释放资源,将引用资源的属性置空。