@baidumap/vue-bmap 1.0.1 → 1.0.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/dist/components/Control/CustomControl.d.ts +45 -0
- package/dist/components/Control/RawControl.d.ts +40 -0
- package/dist/components/Control/index.d.ts +4 -1
- package/dist/components/Layer/BaiduLayer.d.ts +11 -0
- package/dist/components/Layer/DOMLayer.d.ts +154 -0
- package/dist/components/Layer/FeatureLayer.d.ts +129 -0
- package/dist/components/Layer/FillLayer.d.ts +359 -0
- package/dist/components/Layer/LineLayer.d.ts +440 -0
- package/dist/components/Layer/PanoramaCoverageLayer.d.ts +4 -0
- package/dist/components/Layer/PixelLayer.d.ts +11 -0
- package/dist/components/Layer/PointIconLayer.d.ts +263 -0
- package/dist/components/Layer/PointShapeLayer.d.ts +193 -0
- package/dist/components/Layer/ThreeLayer.d.ts +238 -0
- package/dist/components/Layer/TrafficLayer.d.ts +77 -0
- package/dist/components/Layer/index.d.ts +22 -7
- package/dist/components/Map/Map.d.ts +18 -0
- package/dist/components/Map/index.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +54 -0
- package/dist/components/Overlay/CustomOverlay.d.ts +215 -0
- package/dist/components/Overlay/MapMask.d.ts +73 -0
- package/dist/components/Overlay/PlaceDetail.d.ts +59 -0
- package/dist/components/Overlay/PlaceDetailPanel.d.ts +74 -0
- package/dist/components/Overlay/RawOverlay.d.ts +40 -0
- package/dist/components/Overlay/SimpleInfoWindow.d.ts +162 -0
- package/dist/components/Overlay/index.d.ts +11 -0
- package/dist/components/Panorama/PanoramaRef.d.ts +75 -0
- package/dist/components/Panorama/index.d.ts +306 -0
- package/dist/composables/index.d.ts +32 -0
- package/dist/composables/renderHelpers.d.ts +12 -0
- package/dist/composables/useAutocomplete.d.ts +37 -0
- package/dist/composables/useBoundary.d.ts +14 -0
- package/dist/composables/useBusLineSearch.d.ts +35 -0
- package/dist/composables/useConvertor.d.ts +13 -0
- package/dist/composables/useDrivingRoute.d.ts +64 -0
- package/dist/composables/useGeolocation.d.ts +16 -0
- package/dist/composables/useLocalCity.d.ts +12 -0
- package/dist/composables/useLocalSearch.d.ts +92 -0
- package/dist/composables/useMapStatus.d.ts +12 -0
- package/dist/composables/usePanoramaService.d.ts +16 -0
- package/dist/composables/usePlaceDetail.d.ts +19 -0
- package/dist/composables/useRawControl.d.ts +3 -0
- package/dist/composables/useRawOverlay.d.ts +3 -0
- package/dist/composables/useRenderMap.d.ts +4 -0
- package/dist/composables/useRidingRoute.d.ts +7 -0
- package/dist/composables/useTransitRoute.d.ts +16 -0
- package/dist/composables/useTruckRoute.d.ts +7 -0
- package/dist/composables/useWalkingRoute.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +13 -9
- package/dist/index.js +5751 -2401
- package/package.json +7 -2
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
/** 数据驱动样式表达式,如 ['match', ['get', 'name'], '海淀区', 'red', '#aecde8'] */
|
|
4
|
+
export type FillStyleExpr = unknown[];
|
|
5
|
+
export interface FillLayerStyle {
|
|
6
|
+
fillColor?: string | FillStyleExpr;
|
|
7
|
+
fillOpacity?: number | FillStyleExpr;
|
|
8
|
+
pattern?: boolean;
|
|
9
|
+
patternMask?: boolean;
|
|
10
|
+
patternUrl?: string;
|
|
11
|
+
patternMapping?: string;
|
|
12
|
+
patternScale?: number;
|
|
13
|
+
patternOffset?: string;
|
|
14
|
+
sequence?: boolean;
|
|
15
|
+
marginLength?: number;
|
|
16
|
+
borderCovered?: boolean;
|
|
17
|
+
borderMask?: boolean;
|
|
18
|
+
borderWeight?: number | FillStyleExpr;
|
|
19
|
+
borderColor?: string | FillStyleExpr;
|
|
20
|
+
strokeTextureUrl?: string;
|
|
21
|
+
strokeTextureWidth?: number;
|
|
22
|
+
strokeTextureHeight?: number;
|
|
23
|
+
strokeLineJoin?: string;
|
|
24
|
+
strokeLineCap?: string;
|
|
25
|
+
strokeColor?: string | FillStyleExpr;
|
|
26
|
+
strokeWeight?: number | FillStyleExpr;
|
|
27
|
+
strokeOpacity?: number | FillStyleExpr;
|
|
28
|
+
strokeStyle?: string;
|
|
29
|
+
dashArray?: number[];
|
|
30
|
+
height?: number | FillStyleExpr;
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
export interface FillLayerOptions {
|
|
34
|
+
border?: boolean;
|
|
35
|
+
style?: FillLayerStyle;
|
|
36
|
+
idKey?: string;
|
|
37
|
+
crs?: string;
|
|
38
|
+
isFlat?: boolean;
|
|
39
|
+
drawPart?: boolean;
|
|
40
|
+
selectedIndex?: number;
|
|
41
|
+
selectedColor?: string;
|
|
42
|
+
enablePicked?: boolean;
|
|
43
|
+
/** 拾取时是否自动切换 selectedIndex(配合 feature-state 高亮时通常设 false,自己控制状态) */
|
|
44
|
+
enableChangeSelectIndexByPick?: boolean;
|
|
45
|
+
autoSelect?: boolean;
|
|
46
|
+
popEvent?: boolean;
|
|
47
|
+
pickWidth?: number;
|
|
48
|
+
pickHeight?: number;
|
|
49
|
+
/** 命中要素时是否自动改变鼠标样式 */
|
|
50
|
+
mouseStyleChange?: boolean;
|
|
51
|
+
/** 参考中心点(Point) */
|
|
52
|
+
referCenter?: unknown;
|
|
53
|
+
isTop?: boolean;
|
|
54
|
+
isLowText?: boolean;
|
|
55
|
+
visible?: boolean;
|
|
56
|
+
opacity?: number;
|
|
57
|
+
minZoom?: number;
|
|
58
|
+
maxZoom?: number;
|
|
59
|
+
zIndex?: number;
|
|
60
|
+
}
|
|
61
|
+
/** 图层拾取事件对象(enablePicked=true 时点击/命中要素) */
|
|
62
|
+
export interface FillLayerEvent {
|
|
63
|
+
value?: {
|
|
64
|
+
dataIndex?: number;
|
|
65
|
+
dataItem?: {
|
|
66
|
+
properties?: Record<string, unknown>;
|
|
67
|
+
[k: string]: unknown;
|
|
68
|
+
};
|
|
69
|
+
[k: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
[k: string]: unknown;
|
|
72
|
+
}
|
|
73
|
+
export interface FillLayerProps extends FillLayerOptions {
|
|
74
|
+
/** GeoJSON 数据源,变化时调用 raw.setData() */
|
|
75
|
+
data?: object;
|
|
76
|
+
/** setData 第二参(如 { changeCenter: true } 自动定位到数据范围) */
|
|
77
|
+
setDataParams?: object;
|
|
78
|
+
/** 点击要素(需 enablePicked)。e.value.dataItem.properties 为选中要素属性 */
|
|
79
|
+
onClick?: (e: FillLayerEvent) => void;
|
|
80
|
+
/** 双击要素(需 enablePicked) */
|
|
81
|
+
onDblClick?: (e: FillLayerEvent) => void;
|
|
82
|
+
onRightClick?: (e: FillLayerEvent) => void;
|
|
83
|
+
/** 鼠标在要素上移动(需 enablePicked)。SDK 不派发 mouseover/mouseout */
|
|
84
|
+
onMouseMove?: (e: FillLayerEvent) => void;
|
|
85
|
+
/** 图层挂载后回调,拿到原生 FillLayer 实例做命令式操作(如 updateState/clearState) */
|
|
86
|
+
onReady?: (layer: any) => void;
|
|
87
|
+
}
|
|
88
|
+
export declare const FillLayer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
89
|
+
border: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
style: {
|
|
94
|
+
type: PropType<FillLayerStyle>;
|
|
95
|
+
default: any;
|
|
96
|
+
};
|
|
97
|
+
idKey: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: any;
|
|
100
|
+
};
|
|
101
|
+
crs: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: any;
|
|
104
|
+
};
|
|
105
|
+
isFlat: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
drawPart: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
selectedIndex: {
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
default: any;
|
|
116
|
+
};
|
|
117
|
+
selectedColor: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: any;
|
|
120
|
+
};
|
|
121
|
+
enablePicked: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: any;
|
|
124
|
+
};
|
|
125
|
+
enableChangeSelectIndexByPick: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: any;
|
|
128
|
+
};
|
|
129
|
+
autoSelect: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: any;
|
|
132
|
+
};
|
|
133
|
+
popEvent: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: any;
|
|
136
|
+
};
|
|
137
|
+
pickWidth: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: any;
|
|
140
|
+
};
|
|
141
|
+
pickHeight: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
mouseStyleChange: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: any;
|
|
148
|
+
};
|
|
149
|
+
referCenter: {
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
isTop: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: any;
|
|
155
|
+
};
|
|
156
|
+
isLowText: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: any;
|
|
159
|
+
};
|
|
160
|
+
visible: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: any;
|
|
163
|
+
};
|
|
164
|
+
opacity: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
default: any;
|
|
167
|
+
};
|
|
168
|
+
minZoom: {
|
|
169
|
+
type: NumberConstructor;
|
|
170
|
+
default: any;
|
|
171
|
+
};
|
|
172
|
+
maxZoom: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
176
|
+
zIndex: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: any;
|
|
179
|
+
};
|
|
180
|
+
data: {
|
|
181
|
+
type: PropType<object>;
|
|
182
|
+
default: any;
|
|
183
|
+
};
|
|
184
|
+
setDataParams: {
|
|
185
|
+
type: PropType<object>;
|
|
186
|
+
default: any;
|
|
187
|
+
};
|
|
188
|
+
onClick: {
|
|
189
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
190
|
+
default: any;
|
|
191
|
+
};
|
|
192
|
+
onDblClick: {
|
|
193
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
194
|
+
default: any;
|
|
195
|
+
};
|
|
196
|
+
onRightClick: {
|
|
197
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
onMouseMove: {
|
|
201
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
202
|
+
default: any;
|
|
203
|
+
};
|
|
204
|
+
onReady: {
|
|
205
|
+
type: PropType<(layer: any) => void>;
|
|
206
|
+
default: any;
|
|
207
|
+
};
|
|
208
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
209
|
+
border: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: any;
|
|
212
|
+
};
|
|
213
|
+
style: {
|
|
214
|
+
type: PropType<FillLayerStyle>;
|
|
215
|
+
default: any;
|
|
216
|
+
};
|
|
217
|
+
idKey: {
|
|
218
|
+
type: StringConstructor;
|
|
219
|
+
default: any;
|
|
220
|
+
};
|
|
221
|
+
crs: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: any;
|
|
224
|
+
};
|
|
225
|
+
isFlat: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: any;
|
|
228
|
+
};
|
|
229
|
+
drawPart: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
default: any;
|
|
232
|
+
};
|
|
233
|
+
selectedIndex: {
|
|
234
|
+
type: NumberConstructor;
|
|
235
|
+
default: any;
|
|
236
|
+
};
|
|
237
|
+
selectedColor: {
|
|
238
|
+
type: StringConstructor;
|
|
239
|
+
default: any;
|
|
240
|
+
};
|
|
241
|
+
enablePicked: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: any;
|
|
244
|
+
};
|
|
245
|
+
enableChangeSelectIndexByPick: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: any;
|
|
248
|
+
};
|
|
249
|
+
autoSelect: {
|
|
250
|
+
type: BooleanConstructor;
|
|
251
|
+
default: any;
|
|
252
|
+
};
|
|
253
|
+
popEvent: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: any;
|
|
256
|
+
};
|
|
257
|
+
pickWidth: {
|
|
258
|
+
type: NumberConstructor;
|
|
259
|
+
default: any;
|
|
260
|
+
};
|
|
261
|
+
pickHeight: {
|
|
262
|
+
type: NumberConstructor;
|
|
263
|
+
default: any;
|
|
264
|
+
};
|
|
265
|
+
mouseStyleChange: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: any;
|
|
268
|
+
};
|
|
269
|
+
referCenter: {
|
|
270
|
+
default: any;
|
|
271
|
+
};
|
|
272
|
+
isTop: {
|
|
273
|
+
type: BooleanConstructor;
|
|
274
|
+
default: any;
|
|
275
|
+
};
|
|
276
|
+
isLowText: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: any;
|
|
279
|
+
};
|
|
280
|
+
visible: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
default: any;
|
|
283
|
+
};
|
|
284
|
+
opacity: {
|
|
285
|
+
type: NumberConstructor;
|
|
286
|
+
default: any;
|
|
287
|
+
};
|
|
288
|
+
minZoom: {
|
|
289
|
+
type: NumberConstructor;
|
|
290
|
+
default: any;
|
|
291
|
+
};
|
|
292
|
+
maxZoom: {
|
|
293
|
+
type: NumberConstructor;
|
|
294
|
+
default: any;
|
|
295
|
+
};
|
|
296
|
+
zIndex: {
|
|
297
|
+
type: NumberConstructor;
|
|
298
|
+
default: any;
|
|
299
|
+
};
|
|
300
|
+
data: {
|
|
301
|
+
type: PropType<object>;
|
|
302
|
+
default: any;
|
|
303
|
+
};
|
|
304
|
+
setDataParams: {
|
|
305
|
+
type: PropType<object>;
|
|
306
|
+
default: any;
|
|
307
|
+
};
|
|
308
|
+
onClick: {
|
|
309
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
310
|
+
default: any;
|
|
311
|
+
};
|
|
312
|
+
onDblClick: {
|
|
313
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
314
|
+
default: any;
|
|
315
|
+
};
|
|
316
|
+
onRightClick: {
|
|
317
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
318
|
+
default: any;
|
|
319
|
+
};
|
|
320
|
+
onMouseMove: {
|
|
321
|
+
type: PropType<(e: FillLayerEvent) => void>;
|
|
322
|
+
default: any;
|
|
323
|
+
};
|
|
324
|
+
onReady: {
|
|
325
|
+
type: PropType<(layer: any) => void>;
|
|
326
|
+
default: any;
|
|
327
|
+
};
|
|
328
|
+
}>> & Readonly<{}>, {
|
|
329
|
+
visible: boolean;
|
|
330
|
+
opacity: number;
|
|
331
|
+
zIndex: number;
|
|
332
|
+
data: object;
|
|
333
|
+
style: FillLayerStyle;
|
|
334
|
+
minZoom: number;
|
|
335
|
+
maxZoom: number;
|
|
336
|
+
onClick: (e: FillLayerEvent) => void;
|
|
337
|
+
onDblClick: (e: FillLayerEvent) => void;
|
|
338
|
+
onRightClick: (e: FillLayerEvent) => void;
|
|
339
|
+
onMouseMove: (e: FillLayerEvent) => void;
|
|
340
|
+
onReady: (layer: any) => void;
|
|
341
|
+
idKey: string;
|
|
342
|
+
crs: string;
|
|
343
|
+
selectedIndex: number;
|
|
344
|
+
selectedColor: string;
|
|
345
|
+
enablePicked: boolean;
|
|
346
|
+
autoSelect: boolean;
|
|
347
|
+
isFlat: boolean;
|
|
348
|
+
popEvent: boolean;
|
|
349
|
+
pickWidth: number;
|
|
350
|
+
pickHeight: number;
|
|
351
|
+
setDataParams: object;
|
|
352
|
+
border: boolean;
|
|
353
|
+
drawPart: boolean;
|
|
354
|
+
enableChangeSelectIndexByPick: boolean;
|
|
355
|
+
mouseStyleChange: boolean;
|
|
356
|
+
referCenter: unknown;
|
|
357
|
+
isTop: boolean;
|
|
358
|
+
isLowText: boolean;
|
|
359
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|