tg-map-vue3 3.0.3 → 3.0.5
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/dist/src/components/TgMap.vue.d.ts +142 -33
- package/dist/src/components/TgMapWidget.vue.d.ts +2 -4
- package/dist/src/components/controls/TgCustomControl.vue.d.ts +13 -10
- package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +28 -10
- package/dist/src/components/controls/TgScaleControl.vue.d.ts +16 -8
- package/dist/src/components/controls/TgZoomControl.vue.d.ts +16 -8
- package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +50 -38
- package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +2 -4
- package/dist/src/components/map-mixin.d.ts +0 -2
- package/dist/src/components/overlays/TgCircle.vue.d.ts +75 -18
- package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +24 -13
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +51 -19
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +45 -18
- package/dist/src/components/overlays/TgLabel.vue.d.ts +31 -12
- package/dist/src/components/overlays/TgMarker.vue.d.ts +175 -49
- package/dist/src/components/overlays/TgPolygon.vue.d.ts +68 -17
- package/dist/src/components/overlays/TgPolyline.vue.d.ts +56 -15
- package/dist/src/map/event.d.ts +1 -2
- package/dist/src/map/map/baidu-map.d.ts +2 -2
- package/dist/src/map/map/map-options.d.ts +2 -1
- package/dist/src/map/map/map-type.d.ts +1 -0
- package/dist/src/map/map/overlay/baidu-info-box.d.ts +1 -0
- package/dist/src/map/map/overlay/element-overlay.d.ts +1 -0
- package/dist/src/utils/formatter.d.ts +1 -1
- package/dist/src/utils/mapped-types.d.ts +1 -1
- package/dist/src/utils/vue-utils.d.ts +71 -19
- package/dist/style.css +1 -1
- package/dist/tg-map.js +1117 -1091
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +4 -4
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +8 -6
|
@@ -1,45 +1,154 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
|
-
import { type Props } from '../utils/vue-utils';
|
|
1
|
+
import { type PropType } from 'vue';
|
|
4
2
|
import type { AbstractMap } from '../map/map/map';
|
|
5
3
|
import { TgMapType } from '../map/map-factory';
|
|
6
4
|
import { LatLng } from '../map/lat-lng';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
declare const
|
|
10
|
-
type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
import { type InfoWindowMode, GestureHandlingOptions } from '../map/map/map-options';
|
|
6
|
+
import type { Prop } from 'vue';
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
9
|
+
type: {
|
|
10
|
+
type: PropType<TgMapType>;
|
|
11
|
+
default: TgMapType;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
|
|
15
|
+
* 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
|
|
16
|
+
* - :center-sync-delay="300": 延时同步center, 防止center的值更新过快
|
|
17
|
+
* - :current-center.sync="currentCenter": 实时获取center的值
|
|
18
|
+
* - :last-center.sync="center": 获取tg-map销毁时的最后的center的值, 使用这种方式可以做到type切换时保留中心点位置
|
|
19
|
+
* @see AbstractMapEventMap.center-changed
|
|
20
|
+
* */
|
|
21
|
+
center: {
|
|
22
|
+
type: PropType<LatLng>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 同步center的延时
|
|
27
|
+
* @default 300
|
|
28
|
+
* @see center
|
|
29
|
+
*/
|
|
30
|
+
centerSyncDelay: {
|
|
31
|
+
type: PropType<number>;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 仅用来获取center的值, 需要设置center的值请使用`center`属性
|
|
36
|
+
* @see center
|
|
37
|
+
* */
|
|
38
|
+
currentCenter: {
|
|
39
|
+
type: PropType<LatLng>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 仅用于获取tg-map销毁时的最后的center的值
|
|
43
|
+
* @see center
|
|
44
|
+
*/
|
|
45
|
+
lastCenter: {
|
|
46
|
+
type: PropType<LatLng>;
|
|
47
|
+
};
|
|
48
|
+
zoom: {
|
|
49
|
+
type: PropType<number>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
infoWindowMode: {
|
|
53
|
+
type: PropType<InfoWindowMode>;
|
|
54
|
+
};
|
|
55
|
+
gestureHandling: Prop<"none" | GestureHandlingOptions | "auto" | "greedy" | "cooperative", "none" | GestureHandlingOptions | "auto" | "greedy" | "cooperative">;
|
|
56
|
+
minZoom: {
|
|
57
|
+
type: PropType<number>;
|
|
58
|
+
};
|
|
59
|
+
maxZoom: {
|
|
60
|
+
type: PropType<number>;
|
|
61
|
+
};
|
|
62
|
+
mapStyle: {
|
|
63
|
+
type: PropType<any>;
|
|
64
|
+
};
|
|
65
|
+
/** 设置为除BuildInMapTypeId以外的值时, 无实际效果... */
|
|
66
|
+
mapTypeId: {
|
|
67
|
+
type: PropType<"normal" | "satellite" | "hybrid">;
|
|
68
|
+
};
|
|
69
|
+
/** 优先级比mapTypeId高 */
|
|
70
|
+
mapType: {
|
|
71
|
+
type: PropType<any>;
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
attrs: {
|
|
75
|
+
binds: Record<string, unknown>;
|
|
76
|
+
listeners: Record<string, unknown>;
|
|
77
|
+
};
|
|
17
78
|
centerSyncTimeoutId: number;
|
|
18
79
|
}, {
|
|
19
80
|
map: AbstractMap | undefined;
|
|
20
81
|
isDestroyed: boolean;
|
|
21
82
|
}, {
|
|
22
83
|
propsJson(): string;
|
|
23
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
84
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
|
+
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
86
|
+
type: {
|
|
87
|
+
type: PropType<TgMapType>;
|
|
88
|
+
default: TgMapType;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* 当对该属性使用双向绑定时, 改变center将触发update:center又反过来触发center改变, 最终导致无限循环...
|
|
92
|
+
* 当前通过setCenter()时判断center是否有改变来避免该问题, 但为了避免可能存在的问题, 另外设计了如下机制:
|
|
93
|
+
* - :center-sync-delay="300": 延时同步center, 防止center的值更新过快
|
|
94
|
+
* - :current-center.sync="currentCenter": 实时获取center的值
|
|
95
|
+
* - :last-center.sync="center": 获取tg-map销毁时的最后的center的值, 使用这种方式可以做到type切换时保留中心点位置
|
|
96
|
+
* @see AbstractMapEventMap.center-changed
|
|
97
|
+
* */
|
|
98
|
+
center: {
|
|
99
|
+
type: PropType<LatLng>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* 同步center的延时
|
|
104
|
+
* @default 300
|
|
105
|
+
* @see center
|
|
106
|
+
*/
|
|
107
|
+
centerSyncDelay: {
|
|
108
|
+
type: PropType<number>;
|
|
109
|
+
default: number;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* 仅用来获取center的值, 需要设置center的值请使用`center`属性
|
|
113
|
+
* @see center
|
|
114
|
+
* */
|
|
115
|
+
currentCenter: {
|
|
116
|
+
type: PropType<LatLng>;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* 仅用于获取tg-map销毁时的最后的center的值
|
|
120
|
+
* @see center
|
|
121
|
+
*/
|
|
122
|
+
lastCenter: {
|
|
123
|
+
type: PropType<LatLng>;
|
|
124
|
+
};
|
|
125
|
+
zoom: {
|
|
126
|
+
type: PropType<number>;
|
|
127
|
+
required: true;
|
|
128
|
+
};
|
|
129
|
+
infoWindowMode: {
|
|
130
|
+
type: PropType<InfoWindowMode>;
|
|
131
|
+
};
|
|
132
|
+
gestureHandling: Prop<"none" | GestureHandlingOptions | "auto" | "greedy" | "cooperative", "none" | GestureHandlingOptions | "auto" | "greedy" | "cooperative">;
|
|
133
|
+
minZoom: {
|
|
134
|
+
type: PropType<number>;
|
|
135
|
+
};
|
|
136
|
+
maxZoom: {
|
|
137
|
+
type: PropType<number>;
|
|
138
|
+
};
|
|
139
|
+
mapStyle: {
|
|
140
|
+
type: PropType<any>;
|
|
141
|
+
};
|
|
142
|
+
/** 设置为除BuildInMapTypeId以外的值时, 无实际效果... */
|
|
143
|
+
mapTypeId: {
|
|
144
|
+
type: PropType<"normal" | "satellite" | "hybrid">;
|
|
145
|
+
};
|
|
146
|
+
/** 优先级比mapTypeId高 */
|
|
147
|
+
mapType: {
|
|
148
|
+
type: PropType<any>;
|
|
149
|
+
};
|
|
150
|
+
}>>, {
|
|
24
151
|
type: TgMapType;
|
|
25
|
-
currentCenter?: LatLng | undefined;
|
|
26
|
-
lastCenter?: LatLng | undefined;
|
|
27
152
|
centerSyncDelay: number;
|
|
28
|
-
mapTypeId?: string | undefined;
|
|
29
|
-
mapType?: MapType | undefined;
|
|
30
|
-
}>>>, {
|
|
31
|
-
center: any;
|
|
32
|
-
zoom: any;
|
|
33
|
-
infoWindowMode?: any;
|
|
34
|
-
gestureHandling?: any;
|
|
35
|
-
minZoom?: any;
|
|
36
|
-
maxZoom?: any;
|
|
37
|
-
mapStyle?: any;
|
|
38
|
-
type: any;
|
|
39
|
-
currentCenter?: any;
|
|
40
|
-
lastCenter?: any;
|
|
41
|
-
centerSyncDelay: any;
|
|
42
|
-
mapTypeId?: any;
|
|
43
|
-
mapType?: any;
|
|
44
153
|
}>;
|
|
45
|
-
export default
|
|
154
|
+
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference path="map-mixin.d.ts" />
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
1
|
import { dimen } from '../utils/formatter';
|
|
4
2
|
/** TgMap上的Widget, 只是对绝对布局进行简单的封装 */
|
|
5
|
-
declare const
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
4
|
left: {
|
|
7
5
|
type: (NumberConstructor | StringConstructor)[];
|
|
8
6
|
default: null;
|
|
@@ -46,4 +44,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
46
44
|
right: string | number;
|
|
47
45
|
bottom: string | number;
|
|
48
46
|
}>;
|
|
49
|
-
export default
|
|
47
|
+
export default _default;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
/// <reference path="../map-mixin.d.ts" />
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
|
-
import { type Props } from '../../utils/vue-utils';
|
|
4
1
|
import { ControlPosition, CustomControl } from '../../map/map/controls/control';
|
|
5
|
-
declare const
|
|
6
|
-
position:
|
|
7
|
-
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
position: {
|
|
4
|
+
type: import("vue").PropType<ControlPosition>;
|
|
5
|
+
default: ControlPosition;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
8
|
control: CustomControl;
|
|
9
9
|
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
10
10
|
recreate(): void;
|
|
11
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
11
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
position: {
|
|
13
|
+
type: import("vue").PropType<ControlPosition>;
|
|
14
|
+
default: ControlPosition;
|
|
15
|
+
};
|
|
16
|
+
}>>, {
|
|
12
17
|
position: ControlPosition;
|
|
13
|
-
}>>>, {
|
|
14
|
-
position: any;
|
|
15
18
|
}>;
|
|
16
|
-
export default
|
|
19
|
+
export default _default;
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { MapTypeControlType, type MapTypeControl } from '../../map/map/controls/map-type.control';
|
|
2
|
+
import { ControlPosition } from '../../map/map/controls/control';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
position: {
|
|
5
|
+
type: import("vue").PropType<ControlPosition>;
|
|
6
|
+
default: ControlPosition;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: import("vue").PropType<MapTypeControlType>;
|
|
10
|
+
};
|
|
11
|
+
mapTypes: {
|
|
12
|
+
type: import("vue").PropType<import("../../map/map/map-type").MapType[]>;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
6
15
|
control: MapTypeControl;
|
|
7
16
|
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
17
|
recreate(): void;
|
|
9
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
position: {
|
|
20
|
+
type: import("vue").PropType<ControlPosition>;
|
|
21
|
+
default: ControlPosition;
|
|
22
|
+
};
|
|
23
|
+
type: {
|
|
24
|
+
type: import("vue").PropType<MapTypeControlType>;
|
|
25
|
+
};
|
|
26
|
+
mapTypes: {
|
|
27
|
+
type: import("vue").PropType<import("../../map/map/map-type").MapType[]>;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
position: ControlPosition;
|
|
13
31
|
}>;
|
|
14
|
-
export default
|
|
32
|
+
export default _default;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
|
+
import type { ScaleControl } from '../../map/map/controls/scale.control';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
position: {
|
|
5
|
+
type: import("vue").PropType<ControlPosition>;
|
|
6
|
+
default: ControlPosition;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
6
9
|
control: ScaleControl;
|
|
7
10
|
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
11
|
recreate(): void;
|
|
9
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
10
|
-
position
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
position: {
|
|
14
|
+
type: import("vue").PropType<ControlPosition>;
|
|
15
|
+
default: ControlPosition;
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
position: ControlPosition;
|
|
11
19
|
}>;
|
|
12
|
-
export default
|
|
20
|
+
export default _default;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { ZoomControl } from '../../map/map/controls/zoom.control';
|
|
2
|
+
import { ControlPosition } from '../../map/map/controls/control';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
position: {
|
|
5
|
+
type: import("vue").PropType<ControlPosition>;
|
|
6
|
+
default: ControlPosition;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
6
9
|
control: ZoomControl;
|
|
7
10
|
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
11
|
recreate(): void;
|
|
9
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
10
|
-
position
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
position: {
|
|
14
|
+
type: import("vue").PropType<ControlPosition>;
|
|
15
|
+
default: ControlPosition;
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
position: ControlPosition;
|
|
11
19
|
}>;
|
|
12
|
-
export default
|
|
20
|
+
export default _default;
|
|
@@ -1,48 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
|
-
import type { MarkerClusterer, MarkerClustererOptions } from '../../map/map/extra/marker-clusterer';
|
|
4
|
-
import { type Props } from '../../utils/vue-utils';
|
|
1
|
+
import type { MarkerClusterer } from '../../map/map/extra/marker-clusterer';
|
|
5
2
|
import type { MarkerOverlay } from '../../map/map/overlay/marker';
|
|
6
|
-
declare const TgMarkerClusterer: import("vue").DefineComponent<
|
|
3
|
+
declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
4
|
+
gridSize: {
|
|
5
|
+
type: import("vue").PropType<number>;
|
|
6
|
+
};
|
|
7
|
+
maxZoom: {
|
|
8
|
+
type: import("vue").PropType<number>;
|
|
9
|
+
};
|
|
10
|
+
minClusterSize: {
|
|
11
|
+
type: import("vue").PropType<number>;
|
|
12
|
+
};
|
|
13
|
+
averageCenter: {
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
15
|
+
};
|
|
16
|
+
styles: {
|
|
17
|
+
type: import("vue").PropType<import("../../map/map/extra/marker-clusterer").ClusterIconStyle[]>;
|
|
18
|
+
};
|
|
19
|
+
stylesIndexCalculator: {
|
|
20
|
+
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
21
|
+
};
|
|
22
|
+
zIndex: {
|
|
23
|
+
type: import("vue").PropType<number>;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
7
26
|
clusterer: MarkerClusterer;
|
|
27
|
+
markers: MarkerOverlay[];
|
|
8
28
|
}, unknown, {}, {
|
|
9
|
-
getOptions(): MarkerClustererOptions;
|
|
10
29
|
/** TgMarker有可能在该组件未初始化之前调用, 需要通过该方法判断 */
|
|
11
30
|
isInitiated(): boolean;
|
|
12
|
-
markers(): MarkerOverlay[];
|
|
13
31
|
onAddMarker(marker: MarkerOverlay): void;
|
|
14
32
|
onRemoveMarker(marker: MarkerOverlay): void;
|
|
15
33
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
16
34
|
recreate(): void;
|
|
17
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
gridSize?: any;
|
|
41
|
-
minClusterSize?: any;
|
|
42
|
-
averageCenter?: any;
|
|
43
|
-
styles?: any;
|
|
44
|
-
stylesIndexCalculator?: any;
|
|
45
|
-
}>;
|
|
35
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
gridSize: {
|
|
37
|
+
type: import("vue").PropType<number>;
|
|
38
|
+
};
|
|
39
|
+
maxZoom: {
|
|
40
|
+
type: import("vue").PropType<number>;
|
|
41
|
+
};
|
|
42
|
+
minClusterSize: {
|
|
43
|
+
type: import("vue").PropType<number>;
|
|
44
|
+
};
|
|
45
|
+
averageCenter: {
|
|
46
|
+
type: import("vue").PropType<boolean>;
|
|
47
|
+
};
|
|
48
|
+
styles: {
|
|
49
|
+
type: import("vue").PropType<import("../../map/map/extra/marker-clusterer").ClusterIconStyle[]>;
|
|
50
|
+
};
|
|
51
|
+
stylesIndexCalculator: {
|
|
52
|
+
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
53
|
+
};
|
|
54
|
+
zIndex: {
|
|
55
|
+
type: import("vue").PropType<number>;
|
|
56
|
+
};
|
|
57
|
+
}>>, {}>;
|
|
46
58
|
/** TgMarkerClusterer作为构造器, 创建的Vue实例类型 */
|
|
47
|
-
|
|
48
|
-
export default
|
|
59
|
+
type TgMarkerClusterer = InstanceType<typeof TgMarkerClusterer>;
|
|
60
|
+
export default TgMarkerClusterer;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference path="../map-mixin.d.ts" />
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
1
|
import { TrafficLayer } from '../../map/map/map-type';
|
|
4
|
-
declare const
|
|
2
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
5
3
|
[x: string]: unknown;
|
|
6
4
|
}>>, {
|
|
7
5
|
layer: TrafficLayer;
|
|
@@ -12,4 +10,4 @@ declare const _sfc_main: import("vue").DefineComponent<Readonly<import("vue").Co
|
|
|
12
10
|
}>>>>, {
|
|
13
11
|
[x: number]: string;
|
|
14
12
|
} | {}>;
|
|
15
|
-
export default
|
|
13
|
+
export default _default;
|
|
@@ -1,21 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { LatLng } from '../../map/lat-lng';
|
|
2
|
+
import type { CircleOverlay } from '../../map/map/overlay/circle';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
center: {
|
|
5
|
+
type: import("vue").PropType<LatLng>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
radius: {
|
|
9
|
+
type: import("vue").PropType<number>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
clickable: {
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
14
|
+
};
|
|
15
|
+
editable: {
|
|
16
|
+
type: import("vue").PropType<boolean>;
|
|
17
|
+
};
|
|
18
|
+
strokeColor: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
};
|
|
21
|
+
strokeOpacity: {
|
|
22
|
+
type: import("vue").PropType<number>;
|
|
23
|
+
};
|
|
24
|
+
strokeWeight: {
|
|
25
|
+
type: import("vue").PropType<number>;
|
|
26
|
+
};
|
|
27
|
+
visible: {
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
29
|
+
};
|
|
30
|
+
fillColor: {
|
|
31
|
+
type: import("vue").PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
fillOpacity: {
|
|
34
|
+
type: import("vue").PropType<number>;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
attrs: {
|
|
38
|
+
binds: Record<string, unknown>;
|
|
39
|
+
listeners: Record<string, unknown>;
|
|
40
|
+
};
|
|
6
41
|
overlay: CircleOverlay;
|
|
7
42
|
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
43
|
recreate(): void;
|
|
9
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
10
|
-
center:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
44
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
center: {
|
|
46
|
+
type: import("vue").PropType<LatLng>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
radius: {
|
|
50
|
+
type: import("vue").PropType<number>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
clickable: {
|
|
54
|
+
type: import("vue").PropType<boolean>;
|
|
55
|
+
};
|
|
56
|
+
editable: {
|
|
57
|
+
type: import("vue").PropType<boolean>;
|
|
58
|
+
};
|
|
59
|
+
strokeColor: {
|
|
60
|
+
type: import("vue").PropType<string>;
|
|
61
|
+
};
|
|
62
|
+
strokeOpacity: {
|
|
63
|
+
type: import("vue").PropType<number>;
|
|
64
|
+
};
|
|
65
|
+
strokeWeight: {
|
|
66
|
+
type: import("vue").PropType<number>;
|
|
67
|
+
};
|
|
68
|
+
visible: {
|
|
69
|
+
type: import("vue").PropType<boolean>;
|
|
70
|
+
};
|
|
71
|
+
fillColor: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
};
|
|
74
|
+
fillOpacity: {
|
|
75
|
+
type: import("vue").PropType<number>;
|
|
76
|
+
};
|
|
77
|
+
}>>, {}>;
|
|
78
|
+
export default _default;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/// <reference path="../map-mixin.d.ts" />
|
|
2
|
-
/// <reference types="@/global" />
|
|
3
|
-
import { type Props } from '../../utils/vue-utils';
|
|
4
1
|
import { LatLng } from '../../map/lat-lng';
|
|
5
|
-
import { type ElementOverlayOptions, ElementOverlay, type OverlayProjection } from '../../map/map/overlay/element-overlay';
|
|
2
|
+
import { type ElementOverlayOptions, MapPane, ElementOverlay, type OverlayProjection } from '../../map/map/overlay/element-overlay';
|
|
6
3
|
import type { AbstractMap } from '../../map/map/map';
|
|
7
4
|
/** ElementOverlay的简单实现 */
|
|
8
5
|
declare class SimpleElementOverlay extends ElementOverlay {
|
|
@@ -13,18 +10,32 @@ declare class SimpleElementOverlay extends ElementOverlay {
|
|
|
13
10
|
protected onDraw(projection: OverlayProjection): void;
|
|
14
11
|
setPosition(position: LatLng): void;
|
|
15
12
|
}
|
|
16
|
-
declare const
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
declare const TgElementOverlay: import("vue").DefineComponent<{
|
|
14
|
+
mapPane: {
|
|
15
|
+
type: import("vue").PropType<MapPane>;
|
|
16
|
+
default: MapPane;
|
|
17
|
+
};
|
|
18
|
+
position: {
|
|
19
|
+
type: import("vue").PropType<LatLng>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
19
23
|
overlay: SimpleElementOverlay;
|
|
20
24
|
}, unknown, {}, {
|
|
21
25
|
content(): HTMLElement;
|
|
22
26
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
23
27
|
recreate(): void;
|
|
24
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
mapPane: {
|
|
30
|
+
type: import("vue").PropType<MapPane>;
|
|
31
|
+
default: MapPane;
|
|
32
|
+
};
|
|
33
|
+
position: {
|
|
34
|
+
type: import("vue").PropType<LatLng>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>>, {
|
|
38
|
+
mapPane: MapPane;
|
|
29
39
|
}>;
|
|
30
|
-
|
|
40
|
+
type TgElementOverlay = InstanceType<typeof TgElementOverlay>;
|
|
41
|
+
export default TgElementOverlay;
|