forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBufferDistance.js
More file actions
45 lines (35 loc) · 1.47 KB
/
BufferDistance.js
File metadata and controls
45 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import {SuperMap} from '../SuperMap';
import {Util} from '../commontypes/Util';
/**
* @class SuperMap.BufferDistance
* @category iServer SpatialAnalyst BufferAnalyst
* @classdesc 缓冲区分析的缓冲距离类。通过该类可以设置缓冲区分析的缓冲距离,距离可以是数值也可以是数值型的字段表达式。
* @param options - {Object} 缓冲区分析可选参数。如:<br>
* exp - {string} 以数值型的字段表达式作为缓冲区分析的距离值。<br>
* value - {number}以数值作为缓冲区分析的距离值。默认为100,单位:米。
*/
export class BufferDistance {
constructor(options) {
/**
* @member SuperMap.BufferDistance.prototype.exp -{string}
* @description 以数值型的字段表达式作为缓冲区分析的距离值。
*/
this.exp = null;
/**
* @member SuperMap.BufferDistance.prototype.value -{number}
* @description 以数值作为缓冲区分析的距离值。默认为100,单位:米。
*/
this.value = 100;
Util.extend(this, options);
this.CLASS_NAME = "SuperMap.BufferDistance";
}
/**
* @function SuperMap.BufferDistance.prototype.destroy
* @description 释放资源,将引用资源的属性置空。
*/
destroy() {
this.exp = null;
this.value = null;
}
}
SuperMap.BufferDistance = BufferDistance;