Class: FindLocationParameters

FindLocationParameters

选址分区分析参数类。

new FindLocationParameters(options)

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

</script>

// ES6 Import
import { FindLocationParameters } from '@supermap/iclient-ol';

new FindLocationParameters(options);

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

参数。

Name Type Default Description
turnWeightField string

转向权值字段的名称。

weightName string

阻力字段的名称,标识了进行网络分析时所使用的阻力字段。

supplyCenters Array.<SupplyCenter>

资源供给中心集合。

expectedSupplyCenterCount number 1 可选

期望用于最终设施选址的资源供给中心数量。

isFromCenter boolean false 可选

是否从中心点开始分配资源。

Members

expectedSupplyCenterCountnumber

期望用于最终设施选址的资源供给中心数量。 当输入值为 0 时,最终设施选址的资源供给中心数量默认为覆盖分析区域内的所需最少的供给中心数。

Default Value:
1

isFromCenterboolean

是否从中心点开始分配资源。 由于网路数据中的弧段具有正反阻力,即弧段的正向阻力值与其反向阻力值可能不同, 因此,在进行分析时,从资源供给中心开始分配资源到需求点与从需求点向资源供给中心分配这两种分配形式下,所得的分析结果会不同。

supplyCentersArray.<SupplyCenter>

资源供给中心集合。 资源供给中心是提供资源和服务的设施,对应于网络结点, 资源供给中心的相关信息包括资源量、最大阻力值、资源供给中心类型,资源供给中心在网络中所处结点的 ID 等,以便在进行选址分区分析时使用。

turnWeightFieldstring

转向权值字段的名称。

weightNamestring

阻力字段的名称,标识了进行网络分析时所使用的阻力字段。

Methods

destroy()

common/iServer/FindLocationParameters.js, line 62

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