Class: SetDatasourceParameters

SetDatasourceParameters

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

new SetDatasourceParameters(options)

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

</script>

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

new SetDatasourceParameters(options);

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

参数。

Name Type Description
datasourceName string

数据源名称。

description string

数据源描述信息。

coordUnit string

坐标单位。

distanceUnit string

距离单位。

Members

coordUnitstring

坐标单位。

datasourceNamestring

数据源名称。

descriptionstring

数据源描述信息。

distanceUnitstring

距离单位。

Methods

destroy()

common/iServer/SetDatasourceParameters.js, line 55

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