tg-map-vue3 4.2.8 → 4.2.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.
@@ -321,7 +321,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
321
321
  readonly innerMap: {
322
322
  controls: {
323
323
  clear: () => void;
324
- forEach: (callback: (a: HTMLElement, b: number) => void) => void;
324
+ forEach: (callback: (arg0: HTMLElement, arg1: number) => void) => void;
325
325
  getArray: () => HTMLElement[];
326
326
  getAt: (i: number) => HTMLElement;
327
327
  getLength: () => number;
@@ -334,57 +334,43 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
334
334
  bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
335
335
  get: (key: string) => any;
336
336
  notify: (key: string) => void;
337
- set: (key: string, value: any) => void;
337
+ set: (key: string, value: unknown) => void;
338
338
  setValues: (values?: object | null) => void;
339
339
  unbind: (key: string) => void;
340
340
  unbindAll: () => void;
341
341
  }[];
342
342
  data: {
343
- add: (feature?: google.maps.Data.Feature | null | google.maps.Data.FeatureOptions) => google.maps.Data.Feature;
343
+ add: (feature?: google.maps.Data.Feature | google.maps.Data.FeatureOptions | null) => google.maps.Data.Feature;
344
344
  addGeoJson: (geoJson: object, options?: google.maps.Data.GeoJsonOptions | null) => google.maps.Data.Feature[];
345
345
  contains: (feature: google.maps.Data.Feature) => boolean;
346
- forEach: (callback: (a: google.maps.Data.Feature) => void) => void;
347
- getControlPosition: () => google.maps.ControlPosition;
346
+ forEach: (callback: (arg0: google.maps.Data.Feature) => void) => void;
347
+ getControlPosition: () => google.maps.ControlPosition | null;
348
348
  getControls: () => string[] | null;
349
349
  getDrawingMode: () => string | null;
350
350
  getFeatureById: (id: number | string) => google.maps.Data.Feature | undefined;
351
351
  getMap: () => google.maps.Map | null;
352
- getStyle: () => (google.maps.Data.StylingFunction) | google.maps.Data.StyleOptions | null;
353
- loadGeoJson: (url: string, options?: google.maps.Data.GeoJsonOptions | null, callback?: ((a: google.maps.Data.Feature[]) => void) | undefined) => void;
352
+ getStyle: () => google.maps.Data.StylingFunction | google.maps.Data.StyleOptions | null;
353
+ loadGeoJson: (url: string, options?: google.maps.Data.GeoJsonOptions | null, callback?: ((arg0: google.maps.Data.Feature[]) => void) | undefined) => void;
354
354
  overrideStyle: (feature: google.maps.Data.Feature, style: google.maps.Data.StyleOptions) => void;
355
355
  remove: (feature: google.maps.Data.Feature) => void;
356
356
  revertStyle: (feature?: google.maps.Data.Feature | null) => void;
357
- setControlPosition: (controlPosition: google.maps.ControlPosition) => void;
357
+ setControlPosition: (controlPosition: google.maps.ControlPosition | null) => void;
358
358
  setControls: (controls: string[] | null) => void;
359
359
  setDrawingMode: (drawingMode: string | null) => void;
360
360
  setMap: (map: google.maps.Map | null) => void;
361
- setStyle: (style: (google.maps.Data.StylingFunction) | google.maps.Data.StyleOptions | null) => void;
362
- toGeoJson: (callback: (a: object) => void) => void;
361
+ setStyle: (style: google.maps.Data.StylingFunction | google.maps.Data.StyleOptions | null) => void;
362
+ toGeoJson: (callback: (arg0: object) => void) => void;
363
363
  addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
364
364
  bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
365
365
  get: (key: string) => any;
366
366
  notify: (key: string) => void;
367
- set: (key: string, value: any) => void;
367
+ set: (key: string, value: unknown) => void;
368
368
  setValues: (values?: object | null) => void;
369
369
  unbind: (key: string) => void;
370
370
  unbindAll: () => void;
371
371
  };
372
- fitBounds: (bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) => void;
373
- getBounds: () => google.maps.LatLngBounds | undefined;
374
- getCenter: () => google.maps.LatLng | undefined;
375
- getClickableIcons: () => boolean | undefined;
376
- getDiv: () => HTMLElement;
377
- getFeatureLayer: (featureType: google.maps.FeatureType) => google.maps.FeatureLayer;
378
- getHeading: () => number | undefined;
379
- getMapCapabilities: () => google.maps.MapCapabilities;
380
- getMapTypeId: () => string | undefined;
381
- getProjection: () => google.maps.Projection | undefined;
382
- getRenderingType: () => google.maps.RenderingType;
383
- getStreetView: () => google.maps.StreetViewPanorama;
384
- getTilt: () => number | undefined;
385
- getZoom: () => number | undefined;
386
372
  mapTypes: {
387
- set: (id: string, mapType: any) => void;
373
+ set: (id: string, mapType: google.maps.MapType | unknown) => void;
388
374
  addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
389
375
  bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
390
376
  get: (key: string) => any;
@@ -393,10 +379,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
393
379
  unbind: (key: string) => void;
394
380
  unbindAll: () => void;
395
381
  };
396
- moveCamera: (cameraOptions: google.maps.CameraOptions) => void;
397
382
  overlayMapTypes: {
398
383
  clear: () => void;
399
- forEach: (callback: (a: google.maps.MapType | null, b: number) => void) => void;
384
+ forEach: (callback: (arg0: google.maps.MapType | null, arg1: number) => void) => void;
400
385
  getArray: () => (google.maps.MapType | null)[];
401
386
  getAt: (i: number) => google.maps.MapType | null;
402
387
  getLength: () => number;
@@ -409,27 +394,49 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
409
394
  bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
410
395
  get: (key: string) => any;
411
396
  notify: (key: string) => void;
412
- set: (key: string, value: any) => void;
397
+ set: (key: string, value: unknown) => void;
413
398
  setValues: (values?: object | null) => void;
414
399
  unbind: (key: string) => void;
415
400
  unbindAll: () => void;
416
401
  };
402
+ fitBounds: (bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) => void;
403
+ getBounds: () => google.maps.LatLngBounds | undefined;
404
+ getCenter: () => google.maps.LatLng | undefined;
405
+ getClickableIcons: () => boolean | undefined;
406
+ getDatasetFeatureLayer: (datasetId: string) => google.maps.FeatureLayer;
407
+ getDiv: () => HTMLElement;
408
+ getFeatureLayer: (featureType: google.maps.FeatureTypeString) => google.maps.FeatureLayer;
409
+ getHeading: () => number | undefined;
410
+ getHeadingInteractionEnabled: () => boolean | null;
411
+ getInternalUsageAttributionIds: () => Iterable<string> | null;
412
+ getMapCapabilities: () => google.maps.MapCapabilities;
413
+ getMapTypeId: () => google.maps.MapTypeIdString | string | undefined;
414
+ getProjection: () => google.maps.Projection | undefined;
415
+ getRenderingType: () => google.maps.RenderingTypeString;
416
+ getStreetView: () => google.maps.StreetViewPanorama;
417
+ getTilt: () => number | undefined;
418
+ getTiltInteractionEnabled: () => boolean | null;
419
+ getZoom: () => number | undefined;
420
+ moveCamera: (cameraOptions: google.maps.CameraOptions) => void;
417
421
  panBy: (x: number, y: number) => void;
418
422
  panTo: (latLng: google.maps.LatLng | google.maps.LatLngLiteral) => void;
419
423
  panToBounds: (latLngBounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) => void;
420
424
  setCenter: (latlng: google.maps.LatLng | google.maps.LatLngLiteral) => void;
421
425
  setClickableIcons: (value: boolean) => void;
422
426
  setHeading: (heading: number) => void;
423
- setMapTypeId: (mapTypeId: string) => void;
427
+ setHeadingInteractionEnabled: (headingInteractionEnabled: boolean) => void;
428
+ setMapTypeId: (mapTypeId: google.maps.MapTypeIdString | string) => void;
424
429
  setOptions: (options: google.maps.MapOptions | null) => void;
430
+ setRenderingType: (renderingType: google.maps.RenderingTypeString) => void;
425
431
  setStreetView: (panorama: google.maps.StreetViewPanorama | null) => void;
426
432
  setTilt: (tilt: number) => void;
433
+ setTiltInteractionEnabled: (tiltInteractionEnabled: boolean) => void;
427
434
  setZoom: (zoom: number) => void;
428
435
  addListener: (eventName: string, handler: Function) => google.maps.MapsEventListener;
429
436
  bindTo: (key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean) => void;
430
437
  get: (key: string) => any;
431
438
  notify: (key: string) => void;
432
- set: (key: string, value: any) => void;
439
+ set: (key: string, value: unknown) => void;
433
440
  setValues: (values?: object | null) => void;
434
441
  unbind: (key: string) => void;
435
442
  unbindAll: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-map-vue3",
3
- "version": "4.2.8",
3
+ "version": "4.2.9",
4
4
  "author": "ipcjs",
5
5
  "description": "封装 百度地图, Google地图, Here地图(未完成), Maptalks 的Vue3组件库",
6
6
  "keywords": [
@@ -41,12 +41,12 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@types/baidumap-web-sdk": "0.0.11",
44
- "@types/google.maps": "3.51.1",
44
+ "@types/google.maps": "3.64.1",
45
45
  "@types/heremaps": "3.0.14",
46
46
  "maptalks": "^1.7.1",
47
47
  "maptalks.markercluster": "0.8.8",
48
- "tg-commons": "^1.2.10",
49
- "tg-map-core": "4.2.8"
48
+ "tg-commons": "^1.2.12",
49
+ "tg-map-core": "4.2.9"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "vue": "^3.5.16"