new SuperMap.SupplyCenter(options)
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
maxWeightnumber
-
The maximum cost value of the resources supply center. - The value of the maximum resistance of the center point is smaller, and the resources affected area supplied by the center point will be larger. The maximum resistance is used to restrict the cost between the demand point and the center point. If the cost between the demand point (the arc section or the node) and this center point is more than the maximum resistance value, this demand point does not belong to the resources range that this resource supply center supplies.
-
nodeIDnumber
-
The nodes ID number of the resources supply center points. The resources supply center must be the node.
-
resourceValuenumber
-
The maximum services amount or the commodities quantities that the resources supply center supplies. For example, the resource center is the school, and the resource amount of the resource center refers to the number of the students that this school can accept.
-
The typed constants that resources supply for the center points. The types that the resources supply for the center points include non-center, fixed center and optional center. The fixed center is used for resources allocations analysis; the fixed center and the optional center are used for location analysis; the non-center is not considered during the two network analyzing processes.
Methods
-
SuperMap.SupplyCenter.fromJson(jsonObject){SuperMap.SupplyCenter}
SupplyCenter.js, line 63 -
Transform the JSON object on the server to the client object.
Name Type Description jsonObject
Object The JSON object to be turned.
Returns:
Type Description SuperMap.SupplyCenter SupplyCenter object. -
destroy()
SupplyCenter.js, line 51 -
Disposes the resource. The property that references resource is set to null.