mirage2d 1.2.48 → 1.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,13 +6,41 @@
|
|
|
6
6
|
* @Description: 功能
|
|
7
7
|
*/
|
|
8
8
|
import { Cluster } from "ol/source";
|
|
9
|
+
import SelectCluster from "ol-ext/interaction/SelectCluster";
|
|
9
10
|
import { baseGraphicLayer } from "../../base/baseGraphicLayer";
|
|
10
11
|
import { IClusterLayerOption } from "src/base/baseOptionType";
|
|
11
12
|
export declare class ClusterLayer extends baseGraphicLayer {
|
|
12
13
|
styleCache: {};
|
|
13
14
|
option: IClusterLayerOption;
|
|
14
15
|
clusterSource: Cluster;
|
|
15
|
-
selectCluster:
|
|
16
|
+
selectCluster: SelectCluster;
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} layerid 图层编号
|
|
19
|
+
* @param {IClusterLayerOption=} options 配置选项.
|
|
20
|
+
* @param {bool} options.convexhull 显示外接矩形 默认true
|
|
21
|
+
* @param {bool} options.animatesel 是否使用动画 默认true
|
|
22
|
+
* @param {Number} options.animationDuration 动画合并速度, default is 500ms
|
|
23
|
+
* @param {Number} options.haslink 显示聚合点连接线 默认true
|
|
24
|
+
* @param {bool} options.distance 聚合点距离
|
|
25
|
+
* @param {Array<IlevelColor>=} options.levelColor 聚合点层级颜色数组
|
|
26
|
+
* @param {Number} options.levelColor.maxnum 最大值
|
|
27
|
+
* @param {string} options.levelColor.strokecolor 边框颜色
|
|
28
|
+
* @param {Number} options.levelColor.strokewidth 边框宽度
|
|
29
|
+
* @param {string} options.levelColor.fillcolor 背景颜色
|
|
30
|
+
* @param {ISelectClusterOption=} options.selectClusterOption
|
|
31
|
+
* @param {string} options.selectClusterOption.pointRadius //点之间的距离
|
|
32
|
+
* @param {string} options.selectClusterOption.maxObjects 最大对象数
|
|
33
|
+
* @param {string} options.selectClusterOption.spiral true螺旋 false圆
|
|
34
|
+
* @param {boolean} options.selectClusterOption.autoClose 是否自动关闭 默认false
|
|
35
|
+
* @param {IImageStyle} options.selectClusterOption.clusterPointStyle 分散时点的样式
|
|
36
|
+
* @param {Number} options.selectClusterOption.clusterPointStyle.radius 点大小
|
|
37
|
+
* @param {string} options.selectClusterOption.clusterPointStyle.stroke.color 边框颜色
|
|
38
|
+
* @param {Number} options.selectClusterOption.clusterPointStyle.stroke.width 边框宽度
|
|
39
|
+
* @param {string} options.selectClusterOption.clusterPointStyle.fill.color 背景颜色
|
|
40
|
+
* @param {IStrokeOption} options.selectClusterOption.clusterLineStyle 分散时边线样式
|
|
41
|
+
* @param {string} options.selectClusterOption.clusterLineStyle.stroke.color 边框颜色
|
|
42
|
+
* @param {Number} options.selectClusterOption.clusterLineStyle.stroke.width 边框宽度
|
|
43
|
+
*/
|
|
16
44
|
constructor(layerid: string, options?: IClusterLayerOption);
|
|
17
45
|
appendTo(map: any): void;
|
|
18
46
|
showTitle(dataType: string, isShow: boolean): void;
|
|
@@ -196,9 +196,20 @@ export interface IHeatmapLayerOption extends IGraphicLayerOption {
|
|
|
196
196
|
export interface IClusterLayerOption extends IGraphicLayerOption {
|
|
197
197
|
convexhull?: boolean;
|
|
198
198
|
animatesel?: boolean;
|
|
199
|
+
animationDuration?: number;
|
|
199
200
|
haslink?: boolean;
|
|
200
201
|
distance?: number;
|
|
201
202
|
levelColor?: Array<IlevelColor>;
|
|
203
|
+
selectClusterOption?: ISelectClusterOption;
|
|
204
|
+
}
|
|
205
|
+
export interface ISelectClusterOption {
|
|
206
|
+
pointRadius?: number;
|
|
207
|
+
maxObjects?: number;
|
|
208
|
+
spiral?: boolean;
|
|
209
|
+
autoClose?: boolean;
|
|
210
|
+
clusterPointStyle?: IImageStyle;
|
|
211
|
+
clusterLineStyle?: IStrokeOption;
|
|
212
|
+
BackgroundCircle?: IImageStyle;
|
|
202
213
|
}
|
|
203
214
|
export interface IClusterImageLayerOption extends IGraphicLayerOption {
|
|
204
215
|
distance?: number;
|