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.
@@ -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
+ }