tg-map-vue3 3.9.7 → 3.9.9

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/src/components/TgMap.vue.d.ts +505 -38
  3. package/dist/src/components/TgMapWidget.vue.d.ts +4 -4
  4. package/dist/src/components/controls/TgCustomControl.vue.d.ts +6 -6
  5. package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +13 -13
  6. package/dist/src/components/controls/TgScaleControl.vue.d.ts +9 -9
  7. package/dist/src/components/controls/TgStreetViewControl.vue.d.ts +7 -7
  8. package/dist/src/components/controls/TgZoomControl.vue.d.ts +7 -7
  9. package/dist/src/components/extra/TgHeatmap.vue.d.ts +5 -5
  10. package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +7 -7
  11. package/dist/src/components/index.d.ts +1 -0
  12. package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +1 -1
  13. package/dist/src/components/map-hooks.d.ts +1 -1
  14. package/dist/src/components/map-mixin.d.ts +1 -1
  15. package/dist/src/components/overlays/TgCircle.vue.d.ts +18 -18
  16. package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +9 -9
  17. package/dist/src/components/overlays/TgInfoBox.vue.d.ts +19 -45
  18. package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +24 -40
  19. package/dist/src/components/overlays/TgLabel.vue.d.ts +7 -7
  20. package/dist/src/components/overlays/TgMarker.vue.d.ts +65 -193
  21. package/dist/src/components/overlays/TgPolygon.vue.d.ts +45 -70
  22. package/dist/src/components/overlays/TgPolyline.vue.d.ts +15 -15
  23. package/dist/src/components/overlays/TgRectangle.vue.d.ts +45 -70
  24. package/dist/src/map/map/overlay/icon.d.ts +13 -13
  25. package/dist/src/utils/mapped-types.d.ts +2 -2
  26. package/dist/src/utils/maps-utils/index.d.ts +2 -0
  27. package/dist/src/utils/maps-utils/math-util.d.ts +59 -0
  28. package/dist/src/utils/maps-utils/poly-util.d.ts +103 -0
  29. package/dist/src/utils/maps-utils/spherical-util.d.ts +67 -0
  30. package/dist/src/utils/spherical-utils.d.ts +8 -1
  31. package/dist/tg-map.cjs +7 -7
  32. package/dist/tg-map.cjs.map +1 -1
  33. package/dist/tg-map.js +2628 -2303
  34. package/dist/tg-map.js.map +1 -1
  35. package/package.json +31 -33
package/CHANGELOG.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  - ***BREAKING CHANGE***: 依赖[tg-commons](https://www.npmjs.com/package/tg-commons), 移除`typed`/`isDef`等和地图无关的导出
6
6
  - feat: [TgMarker]添加`label`属性, **它和已有的[TgLabel]不能同时设置**
7
+ - feat: 添加球体和线段工具: [SphericalUtil], [PolyUtil]
7
8
 
8
9
  ## 3.8.x
9
10
 
@@ -87,3 +88,5 @@
87
88
  [LatLng]: src/map/lat-lng.ts#L26
88
89
  [BaiduShape]: src/map/map/overlay/shape.ts#L32
89
90
  [MapStyle]: src/map/map/map-options.ts#72
91
+ [PolyUtil]: src/utils/maps-utils/poly-util.ts
92
+ [SphericalUtil]: src/utils/maps-utils/spherical-util.ts
@@ -16,7 +16,7 @@ type TgMapEmits = {
16
16
  'update:map-type-id': string;
17
17
  'update:last-center': LatLng;
18
18
  };
19
- declare const _default: import("vue").DefineComponent<{
19
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
20
  /** type没做响应式, 但外部可以把type作为tg-map的key, 让type修改时完全重建tg-map */
21
21
  type: {
22
22
  type: PropType<StringEnumValue<typeof TgMapType>>;
@@ -90,15 +90,15 @@ declare const _default: import("vue").DefineComponent<{
90
90
  hideLogo: {
91
91
  type: PropType<boolean>;
92
92
  };
93
- onLoad: import("vue").Prop<import(".").EventCallback<AbstractMap>>;
94
- 'onUpdate:center': import("vue").Prop<import(".").EventCallback<LatLng>>;
95
- 'onUpdate:current-center': import("vue").Prop<import(".").EventCallback<LatLng>>;
96
- 'onUpdate:last-center': import("vue").Prop<import(".").EventCallback<LatLng>>;
97
- 'onUpdate:map-type': import("vue").Prop<import(".").EventCallback<MapType>>;
98
- 'onUpdate:map-type-id': import("vue").Prop<import(".").EventCallback<string>>;
99
- 'onUpdate:zoom': import("vue").Prop<import(".").EventCallback<number>>;
100
- onError: import("vue").Prop<import(".").EventCallback<any>>;
101
- }, {
93
+ onLoad: import("vue").Prop<import("./index.ts").EventCallback<AbstractMap>>;
94
+ 'onUpdate:center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
95
+ 'onUpdate:current-center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
96
+ 'onUpdate:last-center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
97
+ 'onUpdate:map-type': import("vue").Prop<import("./index.ts").EventCallback<MapType>>;
98
+ 'onUpdate:map-type-id': import("vue").Prop<import("./index.ts").EventCallback<string>>;
99
+ 'onUpdate:zoom': import("vue").Prop<import("./index.ts").EventCallback<number>>;
100
+ onError: import("vue").Prop<import("./index.ts").EventCallback<any>>;
101
+ }>, {
102
102
  attrs: import("vue").ComputedRef<{
103
103
  binds: Record<string, unknown>;
104
104
  listeners: Record<string, unknown>;
@@ -184,41 +184,508 @@ declare const _default: import("vue").DefineComponent<{
184
184
  hideLogo: {
185
185
  type: PropType<boolean>;
186
186
  };
187
- onLoad: import("vue").Prop<import(".").EventCallback<AbstractMap>>;
188
- 'onUpdate:center': import("vue").Prop<import(".").EventCallback<LatLng>>;
189
- 'onUpdate:current-center': import("vue").Prop<import(".").EventCallback<LatLng>>;
190
- 'onUpdate:last-center': import("vue").Prop<import(".").EventCallback<LatLng>>;
191
- 'onUpdate:map-type': import("vue").Prop<import(".").EventCallback<MapType>>;
192
- 'onUpdate:map-type-id': import("vue").Prop<import(".").EventCallback<string>>;
193
- 'onUpdate:zoom': import("vue").Prop<import(".").EventCallback<number>>;
194
- onError: import("vue").Prop<import(".").EventCallback<any>>;
195
- }>> & {
196
- onDrag?: ((event: import(".").Tg.Event) => any) | undefined;
197
- onDragend?: ((event: import(".").Tg.Event) => any) | undefined;
198
- onDragstart?: ((event: import(".").Tg.Event) => any) | undefined;
199
- onLoad?: ((event: AbstractMap) => any) | undefined;
187
+ onLoad: import("vue").Prop<import("./index.ts").EventCallback<AbstractMap>>;
188
+ 'onUpdate:center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
189
+ 'onUpdate:current-center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
190
+ 'onUpdate:last-center': import("vue").Prop<import("./index.ts").EventCallback<LatLng>>;
191
+ 'onUpdate:map-type': import("vue").Prop<import("./index.ts").EventCallback<MapType>>;
192
+ 'onUpdate:map-type-id': import("vue").Prop<import("./index.ts").EventCallback<string>>;
193
+ 'onUpdate:zoom': import("vue").Prop<import("./index.ts").EventCallback<number>>;
194
+ onError: import("vue").Prop<import("./index.ts").EventCallback<any>>;
195
+ }>> & Readonly<{
196
+ onClick?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
197
+ onDblclick?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
198
+ onMousedown?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
199
+ onMouseup?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
200
+ onMouseout?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
201
+ onMouseover?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
202
+ "onCenter-changed"?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
203
+ onRightclick?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
204
+ onContextmenu?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
205
+ onDragstart?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
206
+ onDrag?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
207
+ onDragend?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
208
+ onMousemove?: ((event: import("./index.ts").Tg.MouseEvent) => any) | undefined;
209
+ onTilesloaded?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
210
+ "onZoom-changed"?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
211
+ "onMap-type-changed"?: ((event: import("./index.ts").Tg.Event) => any) | undefined;
200
212
  onError?: ((event: any) => any) | undefined;
201
- onClick?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
202
- onContextmenu?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
203
- onDblclick?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
204
- onMousedown?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
205
- onMousemove?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
206
- onMouseout?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
207
- onMouseover?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
208
- onMouseup?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
213
+ onLoad?: ((event: AbstractMap) => any) | undefined;
209
214
  "onUpdate:center"?: ((event: LatLng) => any) | undefined;
210
215
  "onUpdate:current-center"?: ((event: LatLng) => any) | undefined;
211
216
  "onUpdate:zoom"?: ((event: number) => any) | undefined;
212
217
  "onUpdate:map-type"?: ((event: MapType) => any) | undefined;
213
218
  "onUpdate:map-type-id"?: ((event: string) => any) | undefined;
214
219
  "onUpdate:last-center"?: ((event: LatLng) => any) | undefined;
215
- "onCenter-changed"?: ((event: import(".").Tg.Event) => any) | undefined;
216
- onRightclick?: ((event: import(".").Tg.MouseEvent) => any) | undefined;
217
- onTilesloaded?: ((event: import(".").Tg.Event) => any) | undefined;
218
- "onZoom-changed"?: ((event: import(".").Tg.Event) => any) | undefined;
219
- "onMap-type-changed"?: ((event: import(".").Tg.Event) => any) | undefined;
220
- }, {
220
+ }>, {
221
221
  type: StringEnumValue<typeof TgMapType>;
222
222
  centerSyncDelay: number;
223
- }, {}>;
223
+ }, {}, {}, {}, string, () => {
224
+ $map: import("vue").ComputedRef<{
225
+ element: HTMLElement;
226
+ setGestureHandling: (gestureHandling: GestureHandlingOptions) => void;
227
+ readonly innerMap: {
228
+ controls: {
229
+ clear: () => void;
230
+ forEach: (callback: (a: HTMLElement, b: number) => void) => void;
231
+ getArray: () => HTMLElement[];
232
+ getAt: (i: number) => HTMLElement;
233
+ getLength: () => number;
234
+ insertAt: (i: number, elem: HTMLElement) => void;
235
+ pop: () => HTMLElement;
236
+ push: (elem: HTMLElement) => number;
237
+ removeAt: (i: number) => HTMLElement;
238
+ setAt: (i: number, elem: HTMLElement) => void;
239
+ addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
240
+ bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
241
+ get: (key: string) => any;
242
+ notify: (key: string) => void;
243
+ set: (key: string, value: any) => void;
244
+ setValues: (values?: object | null) => void;
245
+ unbind: (key: string) => void;
246
+ unbindAll: () => void;
247
+ }[];
248
+ data: {
249
+ add: (feature?: google.maps.Data.Feature | null | google.maps.Data.FeatureOptions) => google.maps.Data.Feature;
250
+ addGeoJson: (geoJson: object, options?: google.maps.Data.GeoJsonOptions | null) => google.maps.Data.Feature[];
251
+ contains: (feature: google.maps.Data.Feature) => boolean;
252
+ forEach: (callback: (a: google.maps.Data.Feature) => void) => void;
253
+ getControlPosition: () => google.maps.ControlPosition;
254
+ getControls: () => string[] | null;
255
+ getDrawingMode: () => string | null;
256
+ getFeatureById: (id: number | string) => google.maps.Data.Feature | undefined;
257
+ getMap: () => google.maps.Map | null;
258
+ getStyle: () => (google.maps.Data.StylingFunction) | google.maps.Data.StyleOptions | null;
259
+ loadGeoJson: (url: string, options?: google.maps.Data.GeoJsonOptions | null, callback?: ((a: google.maps.Data.Feature[]) => void) | undefined) => void;
260
+ overrideStyle: (feature: google.maps.Data.Feature, style: google.maps.Data.StyleOptions) => void;
261
+ remove: (feature: google.maps.Data.Feature) => void;
262
+ revertStyle: (feature?: google.maps.Data.Feature | null) => void;
263
+ setControlPosition: (controlPosition: google.maps.ControlPosition) => void;
264
+ setControls: (controls: string[] | null) => void;
265
+ setDrawingMode: (drawingMode: string | null) => void;
266
+ setMap: (map: google.maps.Map | null) => void;
267
+ setStyle: (style: (google.maps.Data.StylingFunction) | google.maps.Data.StyleOptions | null) => void;
268
+ toGeoJson: (callback: (a: object) => void) => void;
269
+ addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
270
+ bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
271
+ get: (key: string) => any;
272
+ notify: (key: string) => void;
273
+ set: (key: string, value: any) => void;
274
+ setValues: (values?: object | null) => void;
275
+ unbind: (key: string) => void;
276
+ unbindAll: () => void;
277
+ };
278
+ fitBounds: (bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) => void;
279
+ getBounds: () => google.maps.LatLngBounds | undefined;
280
+ getCenter: () => google.maps.LatLng | undefined;
281
+ getClickableIcons: () => boolean | undefined;
282
+ getDiv: () => HTMLElement;
283
+ getFeatureLayer: (featureType: google.maps.FeatureType) => google.maps.FeatureLayer;
284
+ getHeading: () => number | undefined;
285
+ getMapCapabilities: () => google.maps.MapCapabilities;
286
+ getMapTypeId: () => string | undefined;
287
+ getProjection: () => google.maps.Projection | undefined;
288
+ getRenderingType: () => google.maps.RenderingType;
289
+ getStreetView: () => google.maps.StreetViewPanorama;
290
+ getTilt: () => number | undefined;
291
+ getZoom: () => number | undefined;
292
+ mapTypes: {
293
+ set: (id: string, mapType: any) => void;
294
+ addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
295
+ bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
296
+ get: (key: string) => any;
297
+ notify: (key: string) => void;
298
+ setValues: (values?: object | null) => void;
299
+ unbind: (key: string) => void;
300
+ unbindAll: () => void;
301
+ };
302
+ moveCamera: (cameraOptions: google.maps.CameraOptions) => void;
303
+ overlayMapTypes: {
304
+ clear: () => void;
305
+ forEach: (callback: (a: google.maps.MapType | null, b: number) => void) => void;
306
+ getArray: () => (google.maps.MapType | null)[];
307
+ getAt: (i: number) => google.maps.MapType | null;
308
+ getLength: () => number;
309
+ insertAt: (i: number, elem: google.maps.MapType | null) => void;
310
+ pop: () => google.maps.MapType | null;
311
+ push: (elem: google.maps.MapType | null) => number;
312
+ removeAt: (i: number) => google.maps.MapType | null;
313
+ setAt: (i: number, elem: google.maps.MapType | null) => void;
314
+ addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
315
+ bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
316
+ get: (key: string) => any;
317
+ notify: (key: string) => void;
318
+ set: (key: string, value: any) => void;
319
+ setValues: (values?: object | null) => void;
320
+ unbind: (key: string) => void;
321
+ unbindAll: () => void;
322
+ };
323
+ panBy: (x: number, y: number) => void;
324
+ panTo: (latLng: google.maps.LatLng | google.maps.LatLngLiteral) => void;
325
+ panToBounds: (latLngBounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) => void;
326
+ setCenter: (latlng: google.maps.LatLng | google.maps.LatLngLiteral) => void;
327
+ setClickableIcons: (value: boolean) => void;
328
+ setHeading: (heading: number) => void;
329
+ setMapTypeId: (mapTypeId: string) => void;
330
+ setOptions: (options: google.maps.MapOptions | null) => void;
331
+ setStreetView: (panorama: google.maps.StreetViewPanorama | null) => void;
332
+ setTilt: (tilt: number) => void;
333
+ setZoom: (zoom: number) => void;
334
+ addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
335
+ bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
336
+ get: (key: string) => any;
337
+ notify: (key: string) => void;
338
+ set: (key: string, value: any) => void;
339
+ setValues: (values?: object | null) => void;
340
+ unbind: (key: string) => void;
341
+ unbindAll: () => void;
342
+ } | {
343
+ addEventListener: {
344
+ (event: string, handler: BMap.Callback): void;
345
+ (event: string, handler: BMap.Callback): void;
346
+ };
347
+ removeEventListener: {
348
+ (event: string, handler: BMap.Callback): void;
349
+ (event: string, handler: BMap.Callback): void;
350
+ };
351
+ enableDragging: () => void;
352
+ disableDragging: () => void;
353
+ enableScrollWheelZoom: () => void;
354
+ disableScrollWheelZoom: () => void;
355
+ enableDoubleClickZoom: () => void;
356
+ disableDoubleClickZoom: () => void;
357
+ enableKeyboard: () => void;
358
+ disableKeyboard: () => void;
359
+ enableInertialDragging: () => void;
360
+ disableInertialDragging: () => void;
361
+ enableContinuousZoom: () => void;
362
+ disableContinuousZoom: () => void;
363
+ enablePinchToZoom: () => void;
364
+ disablePinchToZoom: () => void;
365
+ enableAutoResize: () => void;
366
+ disableAutoResize: () => void;
367
+ setDefaultCursor: (cursor: string) => void;
368
+ getDefaultCursor: () => string;
369
+ setDraggingCursor: (cursor: string) => void;
370
+ getDraggingCursor: () => string;
371
+ setMinZoom: (zoom: number) => void;
372
+ setMaxZoom: (zoom: number) => void;
373
+ setMapStyle: (mapStyle: BMap.MapStyle) => void;
374
+ setMapStyleV2: (style: BMap.MapStyleV2) => void;
375
+ setPanorama: (pano: BMap.Panorama) => void;
376
+ disable3DBuilding: () => void;
377
+ getBounds: () => BMap.Bounds;
378
+ getCenter: () => BMap.Point;
379
+ getDistance: (start: BMap.Point, end: BMap.Point) => number;
380
+ getMapType: () => BMap.MapType;
381
+ getSize: () => BMap.Size;
382
+ getViewport: (view: BMap.Point[], viewportOptions?: BMap.ViewportOptions) => BMap.Viewport;
383
+ getZoom: () => number;
384
+ getPanorama: () => BMap.Panorama;
385
+ centerAndZoom: {
386
+ (center: BMap.Point, zoom: number): void;
387
+ (city: string): void;
388
+ };
389
+ panTo: (center: BMap.Point, opts?: BMap.PanOptions) => void;
390
+ panBy: (x: number, y: number, opts?: BMap.PanOptions) => void;
391
+ reset: () => void;
392
+ setCenter: (center: BMap.Point | string) => void;
393
+ setCurrentCity: (city: string) => void;
394
+ setMapType: (mapType: BMap.MapType) => void;
395
+ setViewport: (view: BMap.Point[], viewportOptions?: BMap.ViewportOptions) => void;
396
+ setZoom: (zoom: number) => void;
397
+ highResolutionEnabled: () => boolean;
398
+ zoomIn: () => void;
399
+ zoomOut: () => void;
400
+ addHotspot: (hotspot: BMap.Hotspot) => void;
401
+ removeHotspot: (hotspot: BMap.Hotspot) => void;
402
+ clearHotspots: () => void;
403
+ addControl: (control: BMap.Control) => void;
404
+ removeControl: (control: BMap.Control) => void;
405
+ getContainer: () => HTMLElement;
406
+ addContextMenu: (menu: BMap.ContextMenu) => void;
407
+ removeContextMenu: (menu: BMap.ContextMenu) => void;
408
+ addOverlay: (overlay: BMap.Overlay) => void;
409
+ removeOverlay: (overlay: BMap.Overlay) => void;
410
+ clearOverlays: () => void;
411
+ openInfoWindow: (infoWnd: BMap.InfoWindow, point: BMap.Point) => void;
412
+ closeInfoWindow: () => void;
413
+ pointToOverlayPixel: (point: BMap.Point) => BMap.Pixel;
414
+ overlayPixelToPoint: (pixel: BMap.Pixel) => BMap.Point;
415
+ getInfoWindow: () => BMap.InfoWindow;
416
+ getOverlays: () => BMap.Overlay[];
417
+ getPanes: () => BMap.MapPanes;
418
+ addTileLayer: (tileLayer: BMap.TileLayer) => void;
419
+ removeTileLayer: (tilelayer: BMap.TileLayer) => void;
420
+ getTileLayer: (mapType: string) => BMap.TileLayer;
421
+ pixelToPoint: (pixel: BMap.Pixel) => BMap.Point;
422
+ pointToPixel: (point: BMap.Point) => BMap.Pixel;
423
+ onclick: (event: {
424
+ type: string;
425
+ target: any;
426
+ point: BMap.Point;
427
+ pixel: BMap.Pixel;
428
+ overlay: BMap.Overlay;
429
+ }) => void;
430
+ ondblclick: (event: {
431
+ type: string;
432
+ target: any;
433
+ point: BMap.Point;
434
+ pixel: BMap.Pixel;
435
+ }) => void;
436
+ onrightclick: (event: {
437
+ type: string;
438
+ target: any;
439
+ point: BMap.Point;
440
+ pixel: BMap.Pixel;
441
+ overlay: BMap.Overlay;
442
+ }) => void;
443
+ onrightdblclick: (event: {
444
+ type: string;
445
+ target: any;
446
+ point: BMap.Point;
447
+ pixel: BMap.Pixel;
448
+ overlay: BMap.Overlay;
449
+ }) => void;
450
+ onmaptypechange: (event: {
451
+ type: string;
452
+ target: any;
453
+ }) => void;
454
+ onmousemove: (event: {
455
+ type: string;
456
+ target: any;
457
+ point: BMap.Point;
458
+ pixel: BMap.Pixel;
459
+ overlay: BMap.Overlay;
460
+ }) => void;
461
+ onmouseover: (event: {
462
+ type: string;
463
+ target: any;
464
+ }) => void;
465
+ onmouseout: (event: {
466
+ type: string;
467
+ target: any;
468
+ }) => void;
469
+ onmovestart: (event: {
470
+ type: string;
471
+ target: any;
472
+ }) => void;
473
+ onmoving: (event: {
474
+ type: string;
475
+ target: any;
476
+ }) => void;
477
+ onmoveend: (event: {
478
+ type: string;
479
+ target: any;
480
+ }) => void;
481
+ onzoomstart: (event: {
482
+ type: string;
483
+ target: any;
484
+ }) => void;
485
+ onzoomend: (event: {
486
+ type: string;
487
+ target: any;
488
+ }) => void;
489
+ onaddoverlay: (event: {
490
+ type: string;
491
+ target: any;
492
+ }) => void;
493
+ onaddcontrol: (event: {
494
+ type: string;
495
+ target: any;
496
+ }) => void;
497
+ onremovecontrol: (event: {
498
+ type: string;
499
+ target: any;
500
+ }) => void;
501
+ onremoveoverlay: (event: {
502
+ type: string;
503
+ target: any;
504
+ }) => void;
505
+ onclearoverlays: (event: {
506
+ type: string;
507
+ target: any;
508
+ }) => void;
509
+ ondragstart: (event: {
510
+ type: string;
511
+ target: any;
512
+ point: BMap.Point;
513
+ pixel: BMap.Pixel;
514
+ }) => void;
515
+ ondragging: (event: {
516
+ type: string;
517
+ target: any;
518
+ point: BMap.Point;
519
+ pixel: BMap.Pixel;
520
+ }) => void;
521
+ ondragend: (event: {
522
+ type: string;
523
+ target: any;
524
+ point: BMap.Point;
525
+ pixel: BMap.Pixel;
526
+ }) => void;
527
+ onaddtilelayer: (event: {
528
+ type: string;
529
+ target: any;
530
+ }) => void;
531
+ onremovetilelayer: (event: {
532
+ type: string;
533
+ target: any;
534
+ }) => void;
535
+ onload: (event: {
536
+ type: string;
537
+ target: any;
538
+ point: BMap.Point;
539
+ pixel: BMap.Pixel;
540
+ zoom: number;
541
+ }) => void;
542
+ onresize: (event: {
543
+ type: string;
544
+ target: any;
545
+ size: BMap.Size;
546
+ }) => void;
547
+ onhotspotclick: (event: {
548
+ type: string;
549
+ target: any;
550
+ spots: BMap.HotspotOptions;
551
+ }) => void;
552
+ onhotspotover: (event: {
553
+ type: string;
554
+ target: any;
555
+ spots: BMap.HotspotOptions;
556
+ }) => void;
557
+ onhotspotout: (event: {
558
+ type: string;
559
+ target: any;
560
+ spots: BMap.HotspotOptions;
561
+ }) => void;
562
+ ontilesloaded: (event: {
563
+ type: string;
564
+ target: any;
565
+ }) => void;
566
+ ontouchstart: (event: {
567
+ type: string;
568
+ target: any;
569
+ point: BMap.Point;
570
+ pixel: BMap.Pixel;
571
+ }) => void;
572
+ ontouchmove: (event: {
573
+ type: string;
574
+ target: any;
575
+ point: BMap.Point;
576
+ pixel: BMap.Pixel;
577
+ }) => void;
578
+ ontouchend: (event: {
579
+ type: string;
580
+ target: any;
581
+ point: BMap.Point;
582
+ pixel: BMap.Pixel;
583
+ }) => void;
584
+ onlongpress: (event: {
585
+ type: string;
586
+ target: any;
587
+ point: BMap.Point;
588
+ pixel: BMap.Pixel;
589
+ }) => void;
590
+ } | {
591
+ getElement: () => Element;
592
+ setCenter: (center: H.geo.IPoint, opt_animate?: boolean) => H.Map;
593
+ getCenter: () => H.geo.Point;
594
+ setZoom: (zoom: number, opt_animate?: boolean) => H.Map;
595
+ getZoom: () => number;
596
+ zoomAt: (zoom: number, x: number, y: number) => void;
597
+ setViewBounds: (boundingRect: H.geo.Rect, opt_animate?: boolean) => H.Map;
598
+ getViewBounds: () => H.geo.Rect;
599
+ getCameraDataForBounds: (rect: H.geo.Rect) => H.map.ViewModel.CameraData;
600
+ getViewPort: () => H.map.ViewPort;
601
+ getViewModel: () => H.map.ViewModel;
602
+ getLayers: () => H.map.DataModel;
603
+ getImprint: () => H.map.Imprint;
604
+ capture: (callback?: ((canvas: HTMLCanvasElement) => void) | undefined, opt_capturables?: H.util.ICapturable[], opt_x1?: number, opt_y1?: number, opt_x2?: number, opt_y2?: number) => void;
605
+ setEngineType: (type: H.Map.EngineType) => H.Map;
606
+ storeContent: (opt_onprogress?: ((req: H.util.Request) => void) | undefined, opt_bounds?: H.geo.Rect, opt_min?: number, opt_max?: number, opt_layer?: H.map.layer.BaseTileLayer) => H.util.Request;
607
+ clearContent: (opt_onprogress?: ((req: H.util.Request) => void) | undefined) => H.util.Request;
608
+ addLayer: (layer: H.map.layer.Layer, opt_idx?: number) => H.Map;
609
+ removeLayer: (layer: H.map.layer.Layer) => H.Map;
610
+ setBaseLayer: (layer: H.map.layer.Layer) => H.Map;
611
+ getBaseLayer: () => H.map.layer.Layer;
612
+ geoToScreen: (geoPoint: H.geo.IPoint) => H.math.Point;
613
+ screenToGeo: (x: number, y: number) => H.geo.Point;
614
+ screenToCameraData: (x: number, y: number) => H.map.ViewModel.CameraData;
615
+ addObject: (mapObject: H.map.Object) => H.map.Object;
616
+ removeObject: (mapObject: H.map.Object) => H.map.Object;
617
+ getObjects: () => H.map.Object[];
618
+ addObjects: (mapObjects: H.map.Object[]) => H.Map;
619
+ removeObjects: (mapObjects: (H.map.Object[] | H.map.Group)) => H.Map;
620
+ getObjectAt: (x: number, y: number) => H.map.Object;
621
+ getObjectsAt: (x: number, y: number) => H.map.Object[];
622
+ dispatchEvent: (evt: (H.util.Event | string)) => void;
623
+ dispose: () => void;
624
+ addOnDisposeCallback: (callback: () => void, opt_scope?: {}) => void;
625
+ getEngine: () => H.map.render.p2d.RenderEngine;
626
+ addEventListener: (type: string, handler: EventListenerOrEventListenerObject, opt_capture?: boolean, opt_scope?: any) => void;
627
+ removeEventListener: (type: string, handler: EventListenerOrEventListenerObject, opt_capture?: boolean, opt_scope?: any) => void;
628
+ };
629
+ readonly coordType: import("./index.ts").CoordType;
630
+ addEventListener: {
631
+ <K extends keyof AbstractMapEventMap>(type: K, listener: (event: AbstractMapEventMap[K]) => void): void;
632
+ (type: string, listener: import("./index.ts").Tg.EventListener): void;
633
+ };
634
+ removeEventListener: {
635
+ <K extends keyof AbstractMapEventMap>(type: K, listener: (event: AbstractMapEventMap[K]) => void): void;
636
+ (type: string, listener: import("./index.ts").Tg.EventListener): void;
637
+ };
638
+ getLatestInfoWindow: () => import("./index.ts").InfoWindowOverlay | undefined;
639
+ setLatestInfoWindowInternal: (infoWindow: import("./index.ts").InfoWindowOverlay) => void;
640
+ fromContainerPointToLatLng: (point: import("./index.ts").Point) => LatLng;
641
+ fromLatLngToContainerPoint: (latLng: LatLng) => import("./index.ts").Point;
642
+ setDefaultCursor: (cursor: import("csstype").Property.Cursor) => void;
643
+ setDraggable: (draggable: boolean) => void;
644
+ setDoubleClickZoom: (enable: boolean) => void;
645
+ getCenter: () => LatLng;
646
+ setCenter: (latlng: LatLng) => void;
647
+ setMinZoom: (zoom: number) => void;
648
+ setMaxZoom: (zoom: number) => void;
649
+ setMapStyle: (mapStyle?: MapStyle) => void;
650
+ setBuildInMapTypeId: (id: BuildInMapTypeId) => void;
651
+ setMapType: (mapType: MapType) => void;
652
+ getMapType: () => MapType;
653
+ addLayer: (layer: import("./index.ts").Layer) => void;
654
+ removeLayer: (layer: import("./index.ts").Layer) => void;
655
+ addOverlayMapType: (mapType: import("./index.ts").OverlayMapType) => void;
656
+ removeOverlayMapType: (mapType: import("./index.ts").OverlayMapType) => void;
657
+ panTo: (position: LatLng) => void;
658
+ panBy: (x: number, y: number) => void;
659
+ fitBounds: (bounds: import("./index.ts").LatLngBounds, padding?: import("./index.ts").Padding) => void;
660
+ getBounds: () => import("./index.ts").LatLngBounds;
661
+ addElementOverlay: (overlay: import("./index.ts").ElementOverlay) => void;
662
+ removeElementOverlay: (overlay: import("./index.ts").ElementOverlay) => void;
663
+ addOverlay: (overlay: import("./index.ts").Overlay) => void;
664
+ removeOverlay: (overlay: import("./index.ts").Overlay) => void;
665
+ createMarker: (options: import("./index.ts").MarkerOptions) => import("./index.ts").MarkerOverlay;
666
+ createMarkerClusterer: (options: import("./index.ts").MarkerClustererOptions) => import("./index.ts").MarkerClusterer;
667
+ createHeatmap: (options: import("./index.ts").HeatmapOptions) => import("./index.ts").Heatmap;
668
+ createAutocomplete: (options: import("./index.ts").AutocompleteOptions) => import("./index.ts").Autocomplete;
669
+ createSearchBox: (options: import("./index.ts").SearchBoxOptions) => import("./index.ts").SearchBox;
670
+ createPlacesService: (options: import("./index.ts").PlacesServiceOptions) => import("./index.ts").PlacesService;
671
+ createMapUrls: (options: import("./index.ts").MapUrlsOptions) => import("./index.ts").MapUrls;
672
+ createInfoWindow: (options: import("./index.ts").InfoWindowOptions) => import("./index.ts").InfoWindowOverlay;
673
+ createInfoBox: (options: import("./index.ts").InfoBoxOptions) => import("./index.ts").InfoBoxOverlay;
674
+ createPolyline: (options: import("./index.ts").PolylineOptions) => import("./index.ts").PolylineOverlay;
675
+ createPolygon: (options: import("./index.ts").PolygonOptions) => import("./index.ts").PolygonOverlay;
676
+ createRectangle: (options: import("./index.ts").RectangleOptions) => import("./index.ts").RectangleOverlay;
677
+ createCircle: (options: import("./index.ts").CircleOptions) => import("./index.ts").CircleOverlay;
678
+ createLabel: (options: import("../map/map/overlay/label.ts").LabelOptions) => import("../map/map/overlay/label.ts").LabelOverlay;
679
+ addCustomControl: (control: import("./index.ts").CustomControl) => void;
680
+ removeCustomControl: (control: import("./index.ts").CustomControl) => void;
681
+ createMapTypeControl: (options: import("./index.ts").MapTypeControlOptions) => import("./index.ts").MapTypeControl;
682
+ createZoomControl: (options: import("./index.ts").ZoomControlOptions) => import("./index.ts").ZoomControl;
683
+ createStreetViewControl: (options: import("./index.ts").StreetViewControlOptions) => import("./index.ts").StreetViewControl;
684
+ createScaleControl: (options: import("./index.ts").ScaleControlOptions) => import("./index.ts").ZoomControl;
685
+ addControl: (control: import("./index.ts").AbstractControl) => void;
686
+ removeControl: (control: import("./index.ts").AbstractControl) => void;
687
+ getZoom: () => number;
688
+ setZoom: (zoom: number) => void;
689
+ } | undefined>;
690
+ }, true, {}, any>;
224
691
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { dimen } from '../utils/formatter';
2
2
  /** TgMap上的Widget, 只是对绝对布局进行简单的封装 */
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  left: {
5
5
  type: (StringConstructor | NumberConstructor)[];
6
6
  default: null;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
17
17
  type: (StringConstructor | NumberConstructor)[];
18
18
  default: null;
19
19
  };
20
- }, unknown, unknown, {
20
+ }>, {}, {}, {
21
21
  topValue(): string | number;
22
22
  }, {
23
23
  dimen: typeof dimen;
@@ -38,10 +38,10 @@ declare const _default: import("vue").DefineComponent<{
38
38
  type: (StringConstructor | NumberConstructor)[];
39
39
  default: null;
40
40
  };
41
- }>>, {
41
+ }>> & Readonly<{}>, {
42
42
  left: string | number;
43
43
  top: string | number;
44
44
  right: string | number;
45
45
  bottom: string | number;
46
- }, {}>;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
47
47
  export default _default;
@@ -1,20 +1,20 @@
1
1
  import { ControlPosition, CustomControl } from '../../map/map/controls/control';
2
2
  import { type StringEnumValue } from '../../utils/mapped-types';
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  position: {
5
5
  type: import("vue").PropType<StringEnumValue<typeof ControlPosition>>;
6
6
  default: ControlPosition;
7
7
  };
8
- }, {
8
+ }>, {
9
9
  control: CustomControl;
10
- }, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
10
+ }, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
11
11
  recreate(): void;
12
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  position: {
14
14
  type: import("vue").PropType<StringEnumValue<typeof ControlPosition>>;
15
15
  default: ControlPosition;
16
16
  };
17
- }>>, {
17
+ }>> & Readonly<{}>, {
18
18
  position: StringEnumValue<typeof ControlPosition>;
19
- }, {}>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
20
  export default _default;