my-openlayer 2.0.0 → 2.0.1
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.
- package/MyOl.d.ts +128 -128
- package/MyOl.js +382 -381
- package/README.md +0 -21
- package/core/ConfigManager.d.ts +88 -88
- package/core/ConfigManager.js +112 -112
- package/core/EventManager.d.ts +141 -141
- package/core/EventManager.js +316 -316
- package/core/Line.d.ts +130 -109
- package/core/Line.js +354 -288
- package/core/MapBaseLayers.d.ts +234 -234
- package/core/MapBaseLayers.js +573 -573
- package/core/MapTools.d.ts +68 -68
- package/core/MapTools.js +202 -201
- package/core/MeasureHandler.d.ts +65 -65
- package/core/MeasureHandler.js +312 -312
- package/core/Point.d.ts +94 -94
- package/core/Point.js +348 -348
- package/core/Polygon.d.ts +157 -139
- package/core/Polygon.js +558 -529
- package/core/VueTemplatePoint.d.ts +51 -51
- package/core/VueTemplatePoint.js +529 -529
- package/index.d.ts +18 -18
- package/index.js +17 -17
- package/package.json +1 -1
- package/types.d.ts +305 -302
- package/types.js +11 -11
- package/utils/ErrorHandler.d.ts +102 -102
- package/utils/ErrorHandler.js +191 -191
- package/utils/ValidationUtils.d.ts +163 -163
- package/utils/ValidationUtils.js +312 -312
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Map as OLMap } from 'ol';
|
|
2
|
-
import { VueTemplatePointInstance } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Vue模板点位管理类
|
|
5
|
-
* 用于在地图上添加和管理Vue组件覆盖物
|
|
6
|
-
*/
|
|
7
|
-
export default class VueTemplatePoint {
|
|
8
|
-
private readonly map;
|
|
9
|
-
private readonly errorHandler;
|
|
10
|
-
private vuePoints;
|
|
11
|
-
/**
|
|
12
|
-
* 构造函数
|
|
13
|
-
* @param map OpenLayers地图实例
|
|
14
|
-
*/
|
|
15
|
-
constructor(map: OLMap);
|
|
16
|
-
/**
|
|
17
|
-
* 添加Vue模板点位
|
|
18
|
-
* @param pointDataList 点位数据列表
|
|
19
|
-
* @param template Vue模板
|
|
20
|
-
* @param options 可选配置项
|
|
21
|
-
* @returns 点位控制器
|
|
22
|
-
*/
|
|
23
|
-
addVueTemplatePoint(pointDataList: any[], template: any, options?: {
|
|
24
|
-
positioning?: 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center-left' | 'center-center' | 'center-right' | 'top-left' | 'top-center' | 'top-right';
|
|
25
|
-
stopEvent?: boolean;
|
|
26
|
-
}): {
|
|
27
|
-
setVisible: (visible: boolean) => void;
|
|
28
|
-
remove: () => void;
|
|
29
|
-
getPoints: () => VueTemplatePointInstance[];
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* 根据ID获取点位实例
|
|
33
|
-
* @param id 点位ID
|
|
34
|
-
* @returns 点位实例或undefined
|
|
35
|
-
*/
|
|
36
|
-
getPointById(id: string): VueTemplatePointInstance | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* 获取所有点位实例
|
|
39
|
-
* @returns 所有点位实例数组
|
|
40
|
-
*/
|
|
41
|
-
getAllPoints(): VueTemplatePointInstance[];
|
|
42
|
-
/**
|
|
43
|
-
* 移除所有点位
|
|
44
|
-
*/
|
|
45
|
-
removeAllPoints(): void;
|
|
46
|
-
/**
|
|
47
|
-
* 获取点位数量
|
|
48
|
-
* @returns 点位数量
|
|
49
|
-
*/
|
|
50
|
-
getPointCount(): number;
|
|
51
|
-
}
|
|
1
|
+
import { Map as OLMap } from 'ol';
|
|
2
|
+
import { VueTemplatePointInstance } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Vue模板点位管理类
|
|
5
|
+
* 用于在地图上添加和管理Vue组件覆盖物
|
|
6
|
+
*/
|
|
7
|
+
export default class VueTemplatePoint {
|
|
8
|
+
private readonly map;
|
|
9
|
+
private readonly errorHandler;
|
|
10
|
+
private vuePoints;
|
|
11
|
+
/**
|
|
12
|
+
* 构造函数
|
|
13
|
+
* @param map OpenLayers地图实例
|
|
14
|
+
*/
|
|
15
|
+
constructor(map: OLMap);
|
|
16
|
+
/**
|
|
17
|
+
* 添加Vue模板点位
|
|
18
|
+
* @param pointDataList 点位数据列表
|
|
19
|
+
* @param template Vue模板
|
|
20
|
+
* @param options 可选配置项
|
|
21
|
+
* @returns 点位控制器
|
|
22
|
+
*/
|
|
23
|
+
addVueTemplatePoint(pointDataList: any[], template: any, options?: {
|
|
24
|
+
positioning?: 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center-left' | 'center-center' | 'center-right' | 'top-left' | 'top-center' | 'top-right';
|
|
25
|
+
stopEvent?: boolean;
|
|
26
|
+
}): {
|
|
27
|
+
setVisible: (visible: boolean) => void;
|
|
28
|
+
remove: () => void;
|
|
29
|
+
getPoints: () => VueTemplatePointInstance[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 根据ID获取点位实例
|
|
33
|
+
* @param id 点位ID
|
|
34
|
+
* @returns 点位实例或undefined
|
|
35
|
+
*/
|
|
36
|
+
getPointById(id: string): VueTemplatePointInstance | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 获取所有点位实例
|
|
39
|
+
* @returns 所有点位实例数组
|
|
40
|
+
*/
|
|
41
|
+
getAllPoints(): VueTemplatePointInstance[];
|
|
42
|
+
/**
|
|
43
|
+
* 移除所有点位
|
|
44
|
+
*/
|
|
45
|
+
removeAllPoints(): void;
|
|
46
|
+
/**
|
|
47
|
+
* 获取点位数量
|
|
48
|
+
* @returns 点位数量
|
|
49
|
+
*/
|
|
50
|
+
getPointCount(): number;
|
|
51
|
+
}
|