tg-map-vue3 3.7.0-alpha.1 → 3.7.2
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/CHANGELOG.md +7 -2
- package/README.md +13 -0
- package/dist/src/components/TgMap.vue.d.ts +52 -52
- package/dist/src/components/TgMapWidget.vue.d.ts +2 -2
- package/dist/src/components/controls/TgCustomControl.vue.d.ts +5 -5
- package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +9 -9
- package/dist/src/components/controls/TgScaleControl.vue.d.ts +5 -5
- package/dist/src/components/controls/TgZoomControl.vue.d.ts +4 -4
- package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +17 -17
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +3 -3
- package/dist/src/components/map-hooks.d.ts +1 -1
- package/dist/src/components/map-mixin.d.ts +2 -2
- package/dist/src/components/overlays/TgCircle.vue.d.ts +28 -28
- package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +7 -7
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +18 -18
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +16 -16
- package/dist/src/components/overlays/TgLabel.vue.d.ts +12 -12
- package/dist/src/components/overlays/TgMarker.vue.d.ts +43 -43
- package/dist/src/components/overlays/TgPolygon.vue.d.ts +7 -7
- package/dist/src/components/overlays/TgPolyline.vue.d.ts +14 -7
- package/dist/src/components/overlays/TgRectangle.vue.d.ts +7 -7
- package/dist/src/map/map/extra/map-urls.d.ts +26 -2
- package/dist/src/map/map/overlay/icon.d.ts +21 -0
- package/dist/src/map/map/overlay/marker.d.ts +2 -2
- package/dist/src/map/map/overlay/overlay.d.ts +8 -4
- package/dist/src/map/map/overlay/polyline.d.ts +11 -0
- package/dist/src/map/map/overlay/shape.d.ts +8 -0
- package/dist/src/map/map-config.d.ts +1 -3
- package/dist/src/utils/lifecycle-log.d.ts +1 -1
- package/dist/src/utils/mapped-types.d.ts +1 -1
- package/dist/src/utils/strings.d.ts +9 -0
- package/dist/src/utils/vue-utils.d.ts +2 -2
- package/dist/tg-map.js +852 -735
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +6 -6
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +3 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 3.7.x
|
|
4
|
+
|
|
5
|
+
- feat: 添加[IconSequence]到[TgPolyline]中
|
|
6
|
+
|
|
3
7
|
## 3.6.x
|
|
4
8
|
|
|
5
|
-
- feat: 添加[MapUrls], 支持打开地图网页
|
|
9
|
+
- feat: 添加[MapUrls], 支持打开地图网页(导航和搜索)
|
|
6
10
|
- feat: [LatLng]和[TgMarker]添加`normalize`相关方法/参数, 处理经纬度不合法的问题
|
|
7
11
|
- fix: 百度地图的覆盖物([BaiduShape])不能隐藏填充/线条颜色的问题
|
|
8
12
|
- perf: [TgLabel]/[TgInfoBox]/[TgInfoWindow]和[TgMarker]不必紧密相邻, 可以放其他组件
|
|
@@ -53,7 +57,8 @@
|
|
|
53
57
|
[TgInfoBox]: src/components/overlays/TgInfoBox.vue
|
|
54
58
|
[TgInfoWindow]: src/components/overlays/TgInfoWindow.vue
|
|
55
59
|
[Icon]: src/map/map/overlay/icon.ts#L18 "图标"
|
|
56
|
-
[SymbolIcon]: src/map/map/overlay/icon.ts#
|
|
60
|
+
[SymbolIcon]: src/map/map/overlay/icon.ts#L139 "Svg图标"
|
|
61
|
+
[IconSequence]: src/map/map/overlay/icon.ts#L55 "Svg图标序列"
|
|
57
62
|
[PlacesService]: src/map/map/extra/places-service.ts "位置服务"
|
|
58
63
|
[Autocomplete]: src/map/map/extra/autocomplete.ts "自动完成"
|
|
59
64
|
[MapUrls]: src/map/map/extra/map-urls.ts "地图网页"
|
package/README.md
CHANGED
|
@@ -91,3 +91,16 @@ pnpm run lint
|
|
|
91
91
|
### Customize configuration
|
|
92
92
|
|
|
93
93
|
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
94
|
+
|
|
95
|
+
## 参考文档
|
|
96
|
+
|
|
97
|
+
- [百度Javascript API v3.0][]: 老版, [类参考][baidu_ref3]
|
|
98
|
+
- [百度Javascript API GL][]: 新的基于WebGL的实现, [类参考][baidu_ref]
|
|
99
|
+
- [Google Maps Javascript API][]: Google地图, [类参考][google_ref]
|
|
100
|
+
|
|
101
|
+
[Google Maps Javascript API]: https://developers.google.com/maps/documentation/javascript
|
|
102
|
+
[百度Javascript API v3.0]: https://lbsyun.baidu.com/index.php?title=jspopular3.0
|
|
103
|
+
[baidu_ref3]: https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_reference_3_0.html
|
|
104
|
+
[百度Javascript API GL]: https://lbsyun.baidu.com/index.php?title=jspopularGL
|
|
105
|
+
[baidu_ref]: https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html
|
|
106
|
+
[google_ref]: https://developers.google.com/maps/documentation/javascript/reference
|
|
@@ -15,10 +15,10 @@ type TgMapEmits = {
|
|
|
15
15
|
'update:map-type-id': string;
|
|
16
16
|
'update:last-center': LatLng;
|
|
17
17
|
};
|
|
18
|
-
declare const _default: import("vue
|
|
18
|
+
declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
20
20
|
type: {
|
|
21
|
-
type: import("vue
|
|
21
|
+
type: import("vue").PropType<StringEnumValue<typeof TgMapType>>;
|
|
22
22
|
default: TgMapType;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
30
30
|
* @see AbstractMapEventMap.center-changed
|
|
31
31
|
* */
|
|
32
32
|
center: {
|
|
33
|
-
type: import("vue
|
|
33
|
+
type: import("vue").PropType<LatLng>;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
39
39
|
* @see center
|
|
40
40
|
*/
|
|
41
41
|
centerSyncDelay: {
|
|
42
|
-
type: import("vue
|
|
42
|
+
type: import("vue").PropType<number>;
|
|
43
43
|
default: number;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
@@ -47,17 +47,17 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
47
47
|
* @see center
|
|
48
48
|
* */
|
|
49
49
|
currentCenter: {
|
|
50
|
-
type: import("vue
|
|
50
|
+
type: import("vue").PropType<LatLng>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* 仅用于获取tg-map销毁时的最后的center的值
|
|
54
54
|
* @see center
|
|
55
55
|
*/
|
|
56
56
|
lastCenter: {
|
|
57
|
-
type: import("vue
|
|
57
|
+
type: import("vue").PropType<LatLng>;
|
|
58
58
|
};
|
|
59
59
|
zoom: {
|
|
60
|
-
type: import("vue
|
|
60
|
+
type: import("vue").PropType<number>;
|
|
61
61
|
required: true;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
@@ -65,40 +65,40 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
65
65
|
* @see MapOptions.infoWindowMode
|
|
66
66
|
*/
|
|
67
67
|
infoWindowMode: {
|
|
68
|
-
type: import("vue
|
|
68
|
+
type: import("vue").PropType<"single" | "multi">;
|
|
69
69
|
};
|
|
70
70
|
gestureHandling: {
|
|
71
|
-
type: import("vue
|
|
71
|
+
type: import("vue").PropType<StringEnumValue<typeof GestureHandlingOptions>>;
|
|
72
72
|
};
|
|
73
73
|
minZoom: {
|
|
74
|
-
type: import("vue
|
|
74
|
+
type: import("vue").PropType<number>;
|
|
75
75
|
};
|
|
76
76
|
maxZoom: {
|
|
77
|
-
type: import("vue
|
|
77
|
+
type: import("vue").PropType<number>;
|
|
78
78
|
};
|
|
79
79
|
mapStyle: {
|
|
80
|
-
type: import("vue
|
|
80
|
+
type: import("vue").PropType<any>;
|
|
81
81
|
};
|
|
82
82
|
mapTypeId: {
|
|
83
|
-
type: import("vue
|
|
83
|
+
type: import("vue").PropType<StringEnumValue<typeof BuildInMapTypeId>>;
|
|
84
84
|
};
|
|
85
85
|
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
86
86
|
mapType: {
|
|
87
|
-
type: import("vue
|
|
87
|
+
type: import("vue").PropType<any>;
|
|
88
88
|
};
|
|
89
89
|
hideLogo: {
|
|
90
|
-
type: import("vue
|
|
91
|
-
};
|
|
92
|
-
onLoad: import("vue
|
|
93
|
-
'onUpdate:center': import("vue
|
|
94
|
-
'onUpdate:current-center': import("vue
|
|
95
|
-
'onUpdate:last-center': import("vue
|
|
96
|
-
'onUpdate:map-type': import("vue
|
|
97
|
-
'onUpdate:map-type-id': import("vue
|
|
98
|
-
'onUpdate:zoom': import("vue
|
|
99
|
-
onError: import("vue
|
|
90
|
+
type: import("vue").PropType<boolean>;
|
|
91
|
+
};
|
|
92
|
+
onLoad: import("vue").Prop<import("../utils/vue-utils").EventCallback<AbstractMap>>;
|
|
93
|
+
'onUpdate:center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
94
|
+
'onUpdate:current-center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
95
|
+
'onUpdate:last-center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
96
|
+
'onUpdate:map-type': import("vue").Prop<import("../utils/vue-utils").EventCallback<MapType>>;
|
|
97
|
+
'onUpdate:map-type-id': import("vue").Prop<import("../utils/vue-utils").EventCallback<string>>;
|
|
98
|
+
'onUpdate:zoom': import("vue").Prop<import("../utils/vue-utils").EventCallback<number>>;
|
|
99
|
+
onError: import("vue").Prop<import("../utils/vue-utils").EventCallback<any>>;
|
|
100
100
|
}, {
|
|
101
|
-
attrs: import("vue
|
|
101
|
+
attrs: import("vue").ComputedRef<{
|
|
102
102
|
binds: Record<string, unknown>;
|
|
103
103
|
listeners: Record<string, unknown>;
|
|
104
104
|
listenerProps: Record<string, unknown>;
|
|
@@ -109,10 +109,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
109
109
|
isDestroyed: boolean;
|
|
110
110
|
}, {
|
|
111
111
|
propsJson(): string;
|
|
112
|
-
}, {}, import("vue
|
|
112
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, EventEmits<AbstractMapEventMap & TgMapEmits>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
113
113
|
/** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
|
|
114
114
|
type: {
|
|
115
|
-
type: import("vue
|
|
115
|
+
type: import("vue").PropType<StringEnumValue<typeof TgMapType>>;
|
|
116
116
|
default: TgMapType;
|
|
117
117
|
};
|
|
118
118
|
/**
|
|
@@ -124,7 +124,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
124
124
|
* @see AbstractMapEventMap.center-changed
|
|
125
125
|
* */
|
|
126
126
|
center: {
|
|
127
|
-
type: import("vue
|
|
127
|
+
type: import("vue").PropType<LatLng>;
|
|
128
128
|
required: true;
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
@@ -133,7 +133,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
133
133
|
* @see center
|
|
134
134
|
*/
|
|
135
135
|
centerSyncDelay: {
|
|
136
|
-
type: import("vue
|
|
136
|
+
type: import("vue").PropType<number>;
|
|
137
137
|
default: number;
|
|
138
138
|
};
|
|
139
139
|
/**
|
|
@@ -141,17 +141,17 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
141
141
|
* @see center
|
|
142
142
|
* */
|
|
143
143
|
currentCenter: {
|
|
144
|
-
type: import("vue
|
|
144
|
+
type: import("vue").PropType<LatLng>;
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
147
|
* 仅用于获取tg-map销毁时的最后的center的值
|
|
148
148
|
* @see center
|
|
149
149
|
*/
|
|
150
150
|
lastCenter: {
|
|
151
|
-
type: import("vue
|
|
151
|
+
type: import("vue").PropType<LatLng>;
|
|
152
152
|
};
|
|
153
153
|
zoom: {
|
|
154
|
-
type: import("vue
|
|
154
|
+
type: import("vue").PropType<number>;
|
|
155
155
|
required: true;
|
|
156
156
|
};
|
|
157
157
|
/**
|
|
@@ -159,38 +159,38 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
159
159
|
* @see MapOptions.infoWindowMode
|
|
160
160
|
*/
|
|
161
161
|
infoWindowMode: {
|
|
162
|
-
type: import("vue
|
|
162
|
+
type: import("vue").PropType<"single" | "multi">;
|
|
163
163
|
};
|
|
164
164
|
gestureHandling: {
|
|
165
|
-
type: import("vue
|
|
165
|
+
type: import("vue").PropType<StringEnumValue<typeof GestureHandlingOptions>>;
|
|
166
166
|
};
|
|
167
167
|
minZoom: {
|
|
168
|
-
type: import("vue
|
|
168
|
+
type: import("vue").PropType<number>;
|
|
169
169
|
};
|
|
170
170
|
maxZoom: {
|
|
171
|
-
type: import("vue
|
|
171
|
+
type: import("vue").PropType<number>;
|
|
172
172
|
};
|
|
173
173
|
mapStyle: {
|
|
174
|
-
type: import("vue
|
|
174
|
+
type: import("vue").PropType<any>;
|
|
175
175
|
};
|
|
176
176
|
mapTypeId: {
|
|
177
|
-
type: import("vue
|
|
177
|
+
type: import("vue").PropType<StringEnumValue<typeof BuildInMapTypeId>>;
|
|
178
178
|
};
|
|
179
179
|
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
180
180
|
mapType: {
|
|
181
|
-
type: import("vue
|
|
181
|
+
type: import("vue").PropType<any>;
|
|
182
182
|
};
|
|
183
183
|
hideLogo: {
|
|
184
|
-
type: import("vue
|
|
185
|
-
};
|
|
186
|
-
onLoad: import("vue
|
|
187
|
-
'onUpdate:center': import("vue
|
|
188
|
-
'onUpdate:current-center': import("vue
|
|
189
|
-
'onUpdate:last-center': import("vue
|
|
190
|
-
'onUpdate:map-type': import("vue
|
|
191
|
-
'onUpdate:map-type-id': import("vue
|
|
192
|
-
'onUpdate:zoom': import("vue
|
|
193
|
-
onError: import("vue
|
|
184
|
+
type: import("vue").PropType<boolean>;
|
|
185
|
+
};
|
|
186
|
+
onLoad: import("vue").Prop<import("../utils/vue-utils").EventCallback<AbstractMap>>;
|
|
187
|
+
'onUpdate:center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
188
|
+
'onUpdate:current-center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
189
|
+
'onUpdate:last-center': import("vue").Prop<import("../utils/vue-utils").EventCallback<LatLng>>;
|
|
190
|
+
'onUpdate:map-type': import("vue").Prop<import("../utils/vue-utils").EventCallback<MapType>>;
|
|
191
|
+
'onUpdate:map-type-id': import("vue").Prop<import("../utils/vue-utils").EventCallback<string>>;
|
|
192
|
+
'onUpdate:zoom': import("vue").Prop<import("../utils/vue-utils").EventCallback<number>>;
|
|
193
|
+
onError: import("vue").Prop<import("../utils/vue-utils").EventCallback<any>>;
|
|
194
194
|
}>> & {
|
|
195
195
|
onLoad?: ((event: AbstractMap) => any) | undefined;
|
|
196
196
|
onError?: ((event: any) => any) | undefined;
|
|
@@ -202,16 +202,16 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
202
202
|
"onUpdate:last-center"?: ((event: LatLng) => any) | undefined;
|
|
203
203
|
onClick?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
204
204
|
onDblclick?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
205
|
-
onRightclick?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
206
|
-
onContextmenu?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
207
205
|
onMousedown?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
208
206
|
onMouseup?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
209
207
|
onMouseout?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
210
208
|
onMouseover?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
209
|
+
"onCenter-changed"?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
210
|
+
onRightclick?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
211
|
+
onContextmenu?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
211
212
|
onDragstart?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
212
213
|
onDrag?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
213
214
|
onDragend?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
214
|
-
"onCenter-changed"?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
215
215
|
onMousemove?: ((event: import("../map/event").Tg.MouseEvent) => any) | undefined;
|
|
216
216
|
onTilesloaded?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
217
217
|
"onZoom-changed"?: ((event: import("../map/event").Tg.Event) => any) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dimen } from '../utils/formatter';
|
|
2
2
|
/** TgMap上的Widget, 只是对绝对布局进行简单的封装 */
|
|
3
|
-
declare const _default: import("vue
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
left: {
|
|
5
5
|
type: (StringConstructor | NumberConstructor)[];
|
|
6
6
|
default: null;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
21
21
|
topValue(): string | number;
|
|
22
22
|
}, {
|
|
23
23
|
dimen: typeof dimen;
|
|
24
|
-
}, import("vue
|
|
24
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
left: {
|
|
26
26
|
type: (StringConstructor | NumberConstructor)[];
|
|
27
27
|
default: null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type StringEnumValue } from '../../utils/mapped-types';
|
|
2
2
|
import { ControlPosition, CustomControl } from '../../map/map/controls/control';
|
|
3
|
-
declare const _default: import("vue
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue
|
|
5
|
+
type: import("vue").PropType<StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
8
|
}, {
|
|
9
9
|
control: CustomControl;
|
|
10
|
-
}, unknown, {}, {}, import("vue
|
|
10
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
11
11
|
recreate(): void;
|
|
12
|
-
}, import("vue
|
|
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
13
|
position: {
|
|
14
|
-
type: import("vue
|
|
14
|
+
type: import("vue").PropType<StringEnumValue<typeof ControlPosition>>;
|
|
15
15
|
default: ControlPosition;
|
|
16
16
|
};
|
|
17
17
|
}>>, {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { MapTypeControlType, type MapTypeControl } from '../../map/map/controls/map-type.control';
|
|
2
2
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
3
|
-
declare const _default: import("vue
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue
|
|
5
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
8
|
type: {
|
|
9
|
-
type: import("vue
|
|
9
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof MapTypeControlType>>;
|
|
10
10
|
};
|
|
11
11
|
mapTypes: {
|
|
12
|
-
type: import("vue
|
|
12
|
+
type: import("vue").PropType<import("..").MapType[]>;
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
15
15
|
control: MapTypeControl;
|
|
16
|
-
}, unknown, {}, {}, import("vue
|
|
16
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
17
17
|
recreate(): void;
|
|
18
|
-
}, import("vue
|
|
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
19
|
position: {
|
|
20
|
-
type: import("vue
|
|
20
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
21
21
|
default: ControlPosition;
|
|
22
22
|
};
|
|
23
23
|
type: {
|
|
24
|
-
type: import("vue
|
|
24
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof MapTypeControlType>>;
|
|
25
25
|
};
|
|
26
26
|
mapTypes: {
|
|
27
|
-
type: import("vue
|
|
27
|
+
type: import("vue").PropType<import("..").MapType[]>;
|
|
28
28
|
};
|
|
29
29
|
}>>, {
|
|
30
30
|
position: import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
2
|
import type { ScaleControl } from '../../map/map/controls/scale.control';
|
|
3
|
-
declare const _default: import("vue
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue
|
|
5
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
8
|
}, {
|
|
9
9
|
control: ScaleControl;
|
|
10
|
-
}, unknown, {}, {}, import("vue
|
|
10
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
11
11
|
recreate(): void;
|
|
12
|
-
}, import("vue
|
|
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
13
|
position: {
|
|
14
|
-
type: import("vue
|
|
14
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
15
15
|
default: ControlPosition;
|
|
16
16
|
};
|
|
17
17
|
}>>, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
2
|
import { createEmptyVNode } from '../../utils/vue-utils';
|
|
3
|
-
declare const _default: import("vue
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue
|
|
5
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
|
-
}, typeof createEmptyVNode, unknown, {}, {}, import("vue
|
|
8
|
+
}, typeof createEmptyVNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
position: {
|
|
10
|
-
type: import("vue
|
|
10
|
+
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
11
11
|
default: ControlPosition;
|
|
12
12
|
};
|
|
13
13
|
}>>, {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import type { MarkerClusterer } from '../../map/map/extra/marker-clusterer';
|
|
2
2
|
import type { MarkerOverlay } from '../../map/map/overlay/marker';
|
|
3
|
-
declare const TgMarkerClusterer: import("vue
|
|
3
|
+
declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
4
4
|
gridSize: {
|
|
5
|
-
type: import("vue
|
|
5
|
+
type: import("vue").PropType<number>;
|
|
6
6
|
};
|
|
7
7
|
maxZoom: {
|
|
8
|
-
type: import("vue
|
|
8
|
+
type: import("vue").PropType<number>;
|
|
9
9
|
};
|
|
10
10
|
minClusterSize: {
|
|
11
|
-
type: import("vue
|
|
11
|
+
type: import("vue").PropType<number>;
|
|
12
12
|
};
|
|
13
13
|
averageCenter: {
|
|
14
|
-
type: import("vue
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
15
15
|
};
|
|
16
16
|
styles: {
|
|
17
|
-
type: import("vue
|
|
17
|
+
type: import("vue").PropType<import("../../map/map/extra/marker-clusterer").ClusterIconStyle[]>;
|
|
18
18
|
};
|
|
19
19
|
stylesIndexCalculator: {
|
|
20
|
-
type: import("vue
|
|
20
|
+
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
21
21
|
};
|
|
22
22
|
zIndex: {
|
|
23
|
-
type: import("vue
|
|
23
|
+
type: import("vue").PropType<number>;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
26
26
|
clusterer: MarkerClusterer;
|
|
@@ -30,29 +30,29 @@ declare const TgMarkerClusterer: import("vue-demi").DefineComponent<{
|
|
|
30
30
|
isInitiated(): boolean;
|
|
31
31
|
onAddMarker(marker: MarkerOverlay): void;
|
|
32
32
|
onRemoveMarker(marker: MarkerOverlay): void;
|
|
33
|
-
}, import("vue
|
|
33
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
34
34
|
recreate(): void;
|
|
35
|
-
}, import("vue
|
|
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
36
|
gridSize: {
|
|
37
|
-
type: import("vue
|
|
37
|
+
type: import("vue").PropType<number>;
|
|
38
38
|
};
|
|
39
39
|
maxZoom: {
|
|
40
|
-
type: import("vue
|
|
40
|
+
type: import("vue").PropType<number>;
|
|
41
41
|
};
|
|
42
42
|
minClusterSize: {
|
|
43
|
-
type: import("vue
|
|
43
|
+
type: import("vue").PropType<number>;
|
|
44
44
|
};
|
|
45
45
|
averageCenter: {
|
|
46
|
-
type: import("vue
|
|
46
|
+
type: import("vue").PropType<boolean>;
|
|
47
47
|
};
|
|
48
48
|
styles: {
|
|
49
|
-
type: import("vue
|
|
49
|
+
type: import("vue").PropType<import("../../map/map/extra/marker-clusterer").ClusterIconStyle[]>;
|
|
50
50
|
};
|
|
51
51
|
stylesIndexCalculator: {
|
|
52
|
-
type: import("vue
|
|
52
|
+
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
53
53
|
};
|
|
54
54
|
zIndex: {
|
|
55
|
-
type: import("vue
|
|
55
|
+
type: import("vue").PropType<number>;
|
|
56
56
|
};
|
|
57
57
|
}>>, {}, {}>;
|
|
58
58
|
/** TgMarkerClusterer作为构造器, 创建的Vue实例类型 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@/map/dts" />
|
|
2
|
-
import type { App } from 'vue
|
|
2
|
+
import type { App } from 'vue';
|
|
3
3
|
import { getTgMapConfig, setTgMapConfig, type PartialTgMapConfig, type TgMapConfig } from '../map/map-config';
|
|
4
4
|
import LifecycleLogPlugin, { type LifecycleLogOptions } from '../utils/lifecycle-log';
|
|
5
5
|
import MapMixin, { MIXIN_HOOK_CREATE, MIXIN_HOOK_DESTROY, MIXIN_MAP_NAME } from './map-mixin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TrafficLayer } from '../../map/map/map-type';
|
|
2
|
-
declare const _default: import("vue
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
3
|
layer: TrafficLayer;
|
|
4
|
-
}, {}, {}, {}, import("vue
|
|
4
|
+
}, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
5
5
|
recreate(): void;
|
|
6
|
-
}, import("vue
|
|
6
|
+
}, 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<{}>>, {}, {}>;
|
|
7
7
|
export default _default;
|
|
@@ -15,7 +15,7 @@ declare module 'vue' {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
/** @deprecated 使用{@link useTgMapInner}替代 */
|
|
18
|
-
declare const MapMixin: import("vue
|
|
18
|
+
declare const MapMixin: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
19
19
|
recreate(): void;
|
|
20
|
-
}, import("vue
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
21
21
|
export default MapMixin;
|