new SetLayersInfoParameters(options)
Usage
import { SetLayersInfoParameters } from '@supermapgis/iclient-leaflet';
new SetLayersInfoParameters(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.SetLayersInfoParameters({paramsNames});
// 弃用的写法
new SuperMap.SetLayersInfoParameters(options);
</script>
common/iServer/SetLayersInfoParameters.js, line 6
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
As method parameter:
LayerInfoService.setLayersInfo.
Members
-
isTempLayersboolean
-
是否是临时图层。
-
layersInfoObject
-
要更新的图层信息(包含修改和未修改的所有字段)。该参数可以通过图层信息服务获取,然后对返回值中 subLayers.layers[i] 图层信息属性进行修改。
-
resourceIDstring
-
临时图层资源 ID。
Methods
-
destroy()
common/iServer/SetLayersInfoParameters.js, line 44 -
释放资源,将引用资源的属性置空。