Class: SetDatasourceParameters

SetDatasourceParameters

设置数据源信息参数类。此类用于设置数据源的名称、描述信息、坐标单位、距离单位等参数。

new SetDatasourceParameters(options)

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

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

参数。

Name Type Description
datasourceName string

数据源名称。

description string

数据源描述信息。

coordUnit string

坐标单位。

distanceUnit string

距离单位。

API Relations

As method parameter: DatasourceService.setDatasource.

Members

coordUnitstring

坐标单位。

datasourceNamestring

数据源名称。

descriptionstring

数据源描述信息。

distanceUnitstring

距离单位。

Methods

destroy()

common/iServer/SetDatasourceParameters.js, line 55

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