forked from MapGIS/WebClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynShowStyle.js
More file actions
193 lines (175 loc) · 6.62 KB
/
DynShowStyle.js
File metadata and controls
193 lines (175 loc) · 6.62 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
import {
Zondy
} from './Base';
import {
extend
} from "./Util";
import {
CDynNoteInfo
} from "./CDynNoteInfo";
import {
ISShowArc
} from "./EnumComm";
import {
CLineInfo
} from "./CLineInfo";
import {
CPointInfo
} from "./CPointInfo";
import {
CRegionInfo
} from "./CRegionInfo";
/**
* 图层动态显示样式对象
* @class Zondy.Object.DynShowStyle
* @classdesc 地图文档显示样式对象构造函数
* @param {Object} option 属性键值对
* @param {Number} [option.Alpha = 0] 透明度
* @param {Boolean} [option.BugSpare = false] 是否使用错误处理符号
* @param {Boolean} [option.CustomRender = false] 是否自绘驱动
* @param {String} [option.CustomRenderPath = false] 自绘驱动路径设置
* @param {Number} [option.DirectionLineClr = false] 显示的线方向线符号(只适用于其颜色)
* @param {Boolean} [option.DynNoteFlag = false] 是否动态注记
* @param {Zondy.Object.CDynNoteInfo} [option.DynNoteInfo = null] 动态注记参数
* @param {ISShowArc} [option.IsShowArc = 0] 是否显示填充区域的弧段 Zondy.Enum.ISShowArc
* 枚举类型 取值范围: 1 {@link ISShowArc},2{@link ISShowArc},3{@link ISShowArc}
* @param {Boolean} [option.ISShowLineDirection = false] 是否显示线方向
* @param {Zondy.Object.CLineInfo} [option.LineInfo = null] 显示的弧段样式(只适用于其颜色)
* @param {Number} [option.MaxScale = 1.00] 最大显示比率
* @param {Number} [option.MinScale = 1.00] 最小显示比率
* @param {Boolean} [option.ShowCoordPnt = false] 显示坐标点
* @param {Zondy.Object.CLineInfo} [option.SpareLineInfo = null] 错误处理线符号
* @param {Zondy.Object.CPointInfo} [option.SparePointInfo = null] 错误处理点符号
* @param {Zondy.Object.CRegionInfo} [option.SpareRegInfo = null] 错误处理区符号
* @param {Number} [option.SymbleScale = 0.00] 符号显示比例
*
* @see Zondy.Object.CDisplayStyle
*/
var DynShowStyle = function (option) {
var options = (option !== undefined) ? option : {};
extend(this, options);
/**
* @member Zondy.Object.DynShowStyle.prototype.Alpha
* @type {Number}
* @description 透明度
* @default 0
*/
this.Alpha = (options.Alpha !== undefined) ? options.Alpha : 0;
/**
* @member Zondy.Object.DynShowStyle.prototype.BugSpare
* @type {Boolean}
* @description 是否使用错误处理符号
* @default false
*/
this.BugSpare = (options.BugSpare !== undefined) ? options.BugSpare : false;
/**
* @member Zondy.Object.DynShowStyle.prototype.CustomRender
* @type {Boolean}
* @description 是否自绘驱动
* @default false
*/
this.CustomRender = (options.CustomRender !== undefined) ? options.CustomRender : false;
/**
* @member Zondy.Object.DynShowStyle.prototype.CustomRenderPath
* @type {String}
* @description 自绘驱动路径设置
* @default null
*/
this.CustomRenderPath = (options.CustomRenderPath !== undefined) ? options.CustomRenderPath : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.DirectionLineClr
* @type {Number}
* @description 显示的线方向线符号(只适用于其颜色)
* @default 0
*/
this.DirectionLineClr = (options.DirectionLineClr !== undefined) ? options.DirectionLineClr : 0;
/**
* @member Zondy.Object.DynShowStyle.prototype.DynNoteFlag
* @type {String}
* @description 是否动态注记
* @default false
*/
this.DynNoteFlag = (options.DynNoteFlag !== undefined) ? options.DynNoteFlag : false;
/**
* @member Zondy.Object.DynShowStyle.prototype.DynNoteInfo
* @type {Zondy.Object.CDynNoteInfo}
* @description 动态注记参数
* @default null
*/
this.DynNoteInfo = (options.DynNoteInfo !== undefined) ? options.DynNoteInfo : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.IsShowArc
* @type {ISShowArc}
* @description 是否显示填充区域的弧段,Zondy.Enum.ISShowArc;枚举类型
* 取值范围: 1(Zondy.Enum.ISShowArc.Reg),2(Zondy.Enum.ISShowArc.Arc),3(Zondy.Enum.ISShowArc.All)
* @default 0
*/
this.IsShowArc = (options.IsShowArc !== undefined) ? options.IsShowArc : 0;
/**
* @member Zondy.Object.DynShowStyle.prototype.ISShowLineDirection
* @type {Boolean}
* @description 是否显示线方向
* @default false
*/
this.ISShowLineDirection = (options.ISShowLineDirection !== undefined) ? options.ISShowLineDirection : false;
/**
* @member Zondy.Object.DynShowStyle.prototype.LineInfo
* @type {Zondy.Object.CLineInfo}
* @description 显示的弧段样式(只适用于其颜色)
* @default null
*/
this.LineInfo = (options.LineInfo !== undefined) ? options.LineInfo : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.MaxScale
* @type {Number}
* @description 最大显示比率
* @default 0.00
*/
this.MaxScale = (options.MaxScale !== undefined) ? options.MaxScale : 0.00;
/**
* @member Zondy.Object.DynShowStyle.prototype.MinScale
* @type {Number}
* @description 最小显示比率
* @default 0.00
*/
this.MinScale = (options.MinScale !== undefined) ? options.MinScale : 0.00;
/**
* @member Zondy.Object.DynShowStyle.prototype.ShowCoordPnt
* @type {Boolean}
* @description 显示坐标点
* @default false
*/
this.ShowCoordPnt = (options.ShowCoordPnt !== undefined) ? options.ShowCoordPnt : false;
/**
* @member Zondy.Object.DynShowStyle.prototype.SpareLineInfo
* @type {Zondy.Object.CLineInfo}
* @description 错误处理线符号
* @default null
*/
this.SpareLineInfo = (options.SpareLineInfo !== undefined) ? options.SpareLineInfo : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.SparePointInfo
* @type {Zondy.Object.CPointInfo}
* @description 错误处理点符号
* @default null
*/
this.SparePointInfo = (options.SparePointInfo !== undefined) ? options.SparePointInfo : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.SpareRegInfo
* @type {Zondy.Object.CRegionInfo}
* @description 错误处理区符号
* @default null
*/
this.SpareRegInfo = (options.SpareRegInfo !== undefined) ? options.SpareRegInfo : null;
/**
* @member Zondy.Object.DynShowStyle.prototype.SymbleScale
* @type {Number}
* @description 符号显示比例
* @default 0.00
*/
this.SymbleScale = (options.SymbleScale !== undefined) ? options.SymbleScale : 0.00;
};
export {
DynShowStyle
};
Zondy.Object.DynShowStyle = DynShowStyle;