@heycar/heycars-map 0.1.0
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/.eslintrc.json +15 -0
- package/README.md +18 -0
- package/dist/App.d.ts +1 -0
- package/dist/api/driving.d.ts +12 -0
- package/dist/api/geocoder.d.ts +16 -0
- package/dist/api/geometry.d.ts +20 -0
- package/dist/api/place.d.ts +16 -0
- package/dist/business-components/AddressBox/AddressBox.css.d.ts +7 -0
- package/dist/business-components/AddressBox/AddressBox.d.ts +10 -0
- package/dist/business-components/AddressBox/index.d.ts +1 -0
- package/dist/business-components/AddressLocator/AddressLocator.css.d.ts +1 -0
- package/dist/business-components/AddressLocator/AddressLocator.d.ts +7 -0
- package/dist/business-components/AddressLocator/index.d.ts +1 -0
- package/dist/business-components/DrivingLine/DrivingLine.css.d.ts +1 -0
- package/dist/business-components/DrivingLine/DrivingLine.d.ts +6 -0
- package/dist/business-components/DrivingLine/index.d.ts +1 -0
- package/dist/business-components/PassengerCircle/PassengerCircle.css.d.ts +1 -0
- package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +7 -0
- package/dist/business-components/PassengerCircle/index.d.ts +1 -0
- package/dist/business-components/PlaceCircle/PlaceCircle.css.d.ts +5 -0
- package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +8 -0
- package/dist/business-components/PlaceCircle/index.d.ts +1 -0
- package/dist/business-components/StartEndPoint/StartEndPoint.css.d.ts +20 -0
- package/dist/business-components/StartEndPoint/StartEndPoint.d.ts +9 -0
- package/dist/business-components/StartEndPoint/index.d.ts +1 -0
- package/dist/business-components/TaxiCar/TaxiCar.css.d.ts +3 -0
- package/dist/business-components/TaxiCar/TaxiCar.d.ts +8 -0
- package/dist/business-components/TaxiCar/index.d.ts +1 -0
- package/dist/business-components/WalkingLine/WalkingLine.d.ts +6 -0
- package/dist/business-components/WalkingLine/index.d.ts +1 -0
- package/dist/business-components/WaveCircle/WaveCircle.css.d.ts +4 -0
- package/dist/business-components/WaveCircle/WaveCircle.d.ts +6 -0
- package/dist/business-components/WaveCircle/index.d.ts +1 -0
- package/dist/components/Amap/Amap.css.d.ts +1 -0
- package/dist/components/Amap/Amap.d.ts +7 -0
- package/dist/components/Amap/index.d.ts +1 -0
- package/dist/components/Amap/useAmap.d.ts +399 -0
- package/dist/components/AmapInfoWindow/AmapInfoWindow.d.ts +4 -0
- package/dist/components/AmapInfoWindow/index.d.ts +1 -0
- package/dist/components/AmapLoader/AmapLoader.d.ts +20 -0
- package/dist/components/AmapLoader/index.d.ts +1 -0
- package/dist/components/AmapMarker/AmapMarker.d.ts +2 -0
- package/dist/components/AmapMarker/index.d.ts +1 -0
- package/dist/components/AmapPolygon/AmapPolygon.d.ts +2 -0
- package/dist/components/AmapPolygon/index.d.ts +1 -0
- package/dist/components/AmapPolyline/AmapPolyline.d.ts +2 -0
- package/dist/components/AmapPolyline/index.d.ts +1 -0
- package/dist/components/AmapText/AmapText.d.ts +2 -0
- package/dist/components/AmapText/index.d.ts +1 -0
- package/dist/components/Demo/BusinessDemo.d.ts +2 -0
- package/dist/components/Demo/Demo.css.d.ts +1 -0
- package/dist/components/Demo/Demo.d.ts +2 -0
- package/dist/components/Demo/Hello.d.ts +17 -0
- package/dist/components/Demo/HeycarDemo.d.ts +1 -0
- package/dist/components/Demo/index.d.ts +1 -0
- package/dist/components/Gmap/Gmap.d.ts +5 -0
- package/dist/components/Gmap/index.d.ts +1 -0
- package/dist/components/Gmap/useGmap.d.ts +5 -0
- package/dist/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +3 -0
- package/dist/components/GmapAdvancedMarkerView/index.d.ts +1 -0
- package/dist/components/GmapInfoWindow/GmapInfoWindow.d.ts +5 -0
- package/dist/components/GmapInfoWindow/index.d.ts +1 -0
- package/dist/components/GmapLoader/GmapLoader.d.ts +37 -0
- package/dist/components/GmapLoader/index.d.ts +1 -0
- package/dist/components/GmapMarker/GmapMarker.d.ts +3 -0
- package/dist/components/GmapMarker/index.d.ts +1 -0
- package/dist/components/GmapPolygon/GmapPolygon.d.ts +3 -0
- package/dist/components/GmapPolygon/index.d.ts +1 -0
- package/dist/components/GmapPolyline/GmapPolyline.d.ts +3 -0
- package/dist/components/GmapPolyline/index.d.ts +1 -0
- package/dist/components/MapProvider/MapProvider.d.ts +7 -0
- package/dist/components/MapProvider/index.d.ts +1 -0
- package/dist/components/MapProvider/useMapSupplier.d.ts +11 -0
- package/dist/index.cjs +70 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1498 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/amap/marker.d.ts +11 -0
- package/dist/types/helper.d.ts +30 -0
- package/dist/types/interface.d.ts +1 -0
- package/dist/utils/compare.d.ts +21 -0
- package/dist/utils/dom.d.ts +2 -0
- package/dist/utils/transform.d.ts +9 -0
- package/dist/vite.svg +1 -0
- package/esbuild.mjs +40 -0
- package/index.html +13 -0
- package/package.json +94 -0
- package/public/vite.svg +1 -0
- package/src/App.tsx +10 -0
- package/src/api/driving.ts +87 -0
- package/src/api/geocoder.ts +88 -0
- package/src/api/geometry.ts +44 -0
- package/src/api/place.ts +107 -0
- package/src/assets/icons/svg/address-locator.svg +1 -0
- package/src/assets/icons/svg/arrow-right.svg +1 -0
- package/src/assets/icons/svg/end-point.svg +1 -0
- package/src/assets/icons/svg/passenger-circle.svg +1 -0
- package/src/assets/icons/svg/place-circle.svg +22 -0
- package/src/assets/icons/svg/start-point.svg +1 -0
- package/src/assets/icons/svg/taxi-car.svg +1 -0
- package/src/assets/icons/svg/wave-circle.svg +1 -0
- package/src/business-components/AddressBox/AddressBox.css.ts +55 -0
- package/src/business-components/AddressBox/AddressBox.tsx +69 -0
- package/src/business-components/AddressBox/index.ts +1 -0
- package/src/business-components/AddressLocator/AddressLocator.css.ts +7 -0
- package/src/business-components/AddressLocator/AddressLocator.tsx +40 -0
- package/src/business-components/AddressLocator/index.ts +1 -0
- package/src/business-components/DrivingLine/DrivingLine.css.ts +10 -0
- package/src/business-components/DrivingLine/DrivingLine.tsx +124 -0
- package/src/business-components/DrivingLine/index.ts +1 -0
- package/src/business-components/PassengerCircle/PassengerCircle.css.ts +8 -0
- package/src/business-components/PassengerCircle/PassengerCircle.tsx +42 -0
- package/src/business-components/PassengerCircle/index.ts +1 -0
- package/src/business-components/PlaceCircle/PlaceCircle.css.ts +30 -0
- package/src/business-components/PlaceCircle/PlaceCircle.tsx +66 -0
- package/src/business-components/PlaceCircle/index.ts +1 -0
- package/src/business-components/StartEndPoint/StartEndPoint.css.ts +70 -0
- package/src/business-components/StartEndPoint/StartEndPoint.tsx +103 -0
- package/src/business-components/StartEndPoint/index.ts +1 -0
- package/src/business-components/TaxiCar/TaxiCar.css.ts +16 -0
- package/src/business-components/TaxiCar/TaxiCar.tsx +77 -0
- package/src/business-components/TaxiCar/index.ts +1 -0
- package/src/business-components/WalkingLine/WalkingLine.tsx +73 -0
- package/src/business-components/WalkingLine/index.ts +1 -0
- package/src/business-components/WaveCircle/WaveCircle.css.ts +54 -0
- package/src/business-components/WaveCircle/WaveCircle.tsx +56 -0
- package/src/business-components/WaveCircle/index.ts +1 -0
- package/src/components/Amap/Amap.css.ts +3 -0
- package/src/components/Amap/Amap.ts +58 -0
- package/src/components/Amap/index.ts +1 -0
- package/src/components/Amap/useAmap.ts +9 -0
- package/src/components/AmapInfoWindow/AmapInfoWindow.ts +45 -0
- package/src/components/AmapInfoWindow/index.ts +1 -0
- package/src/components/AmapLoader/AmapLoader.ts +68 -0
- package/src/components/AmapLoader/index.ts +1 -0
- package/src/components/AmapMarker/AmapMarker.ts +38 -0
- package/src/components/AmapMarker/index.ts +1 -0
- package/src/components/AmapPolygon/AmapPolygon.ts +41 -0
- package/src/components/AmapPolygon/index.ts +1 -0
- package/src/components/AmapPolyline/AmapPolyline.ts +40 -0
- package/src/components/AmapPolyline/index.ts +1 -0
- package/src/components/AmapText/AmapText.ts +39 -0
- package/src/components/AmapText/index.ts +1 -0
- package/src/components/Demo/BusinessDemo.tsx +117 -0
- package/src/components/Demo/Demo.css.ts +6 -0
- package/src/components/Demo/Demo.tsx +97 -0
- package/src/components/Demo/Hello.tsx +15 -0
- package/src/components/Demo/HeycarDemo.tsx +31 -0
- package/src/components/Demo/TemplateDemo.vue +11 -0
- package/src/components/Demo/index.ts +1 -0
- package/src/components/Gmap/Gmap.ts +34 -0
- package/src/components/Gmap/index.ts +1 -0
- package/src/components/Gmap/useGmap.ts +7 -0
- package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +48 -0
- package/src/components/GmapAdvancedMarkerView/index.ts +1 -0
- package/src/components/GmapInfoWindow/GmapInfoWindow.ts +38 -0
- package/src/components/GmapInfoWindow/index.ts +1 -0
- package/src/components/GmapLoader/GmapLoader.ts +79 -0
- package/src/components/GmapLoader/index.ts +1 -0
- package/src/components/GmapMarker/GmapMarker.ts +31 -0
- package/src/components/GmapMarker/index.ts +1 -0
- package/src/components/GmapPolygon/GmapPolygon.ts +29 -0
- package/src/components/GmapPolygon/index.ts +1 -0
- package/src/components/GmapPolyline/GmapPolyline.ts +29 -0
- package/src/components/GmapPolyline/index.ts +1 -0
- package/src/components/MapProvider/MapProvider.tsx +64 -0
- package/src/components/MapProvider/index.ts +1 -0
- package/src/components/MapProvider/useMapSupplier.ts +19 -0
- package/src/index.ts +14 -0
- package/src/main.ts +6 -0
- package/src/style.css +0 -0
- package/src/types/amap/autocomplete.d.ts +64 -0
- package/src/types/amap/driving.d.ts +168 -0
- package/src/types/amap/geocoder.d.ts +214 -0
- package/src/types/amap/marker.ts +11 -0
- package/src/types/amap/place.d.ts +114 -0
- package/src/types/amap/plugin.d.ts +27 -0
- package/src/types/amap/walking.d.ts +76 -0
- package/src/types/global.d.ts +10 -0
- package/src/types/helper.ts +139 -0
- package/src/types/interface.ts +1 -0
- package/src/utils/compare.ts +174 -0
- package/src/utils/dom.ts +14 -0
- package/src/utils/transform.ts +27 -0
- package/src/vite-env.d.ts +12 -0
- package/todo.md +1 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.dev.ts +17 -0
- package/vite.config.ts +40 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { ShallowRef } from "vue-demi";
|
|
2
|
+
export declare const amapContext: unique symbol;
|
|
3
|
+
export declare const useAmap: () => ShallowRef<{
|
|
4
|
+
_outseaDataType: string;
|
|
5
|
+
setCenter(center: [number, number] | AMap.LngLat, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
6
|
+
getStyleByUserId(id: any, zoom: number): any;
|
|
7
|
+
getCustomTypeByContainerPos(lnglat: any): any;
|
|
8
|
+
getScreenShot(width: number, height: number): string;
|
|
9
|
+
updateView(view: any, render?: boolean | undefined): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
setZoomAndCenter(zoom: number, center: [number, number] | AMap.LngLat, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
12
|
+
getBounds(): AMap.Bounds;
|
|
13
|
+
getCenter(): AMap.LngLat;
|
|
14
|
+
getGraphicInfo(): {
|
|
15
|
+
hardwareAccEnabled: any;
|
|
16
|
+
};
|
|
17
|
+
setZoom(zoom: number, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
18
|
+
getZoom(digits?: number | undefined): number;
|
|
19
|
+
zoomIn(): void;
|
|
20
|
+
zoomOut(): void;
|
|
21
|
+
getPitch(): number;
|
|
22
|
+
setPitch(pitch: number, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
23
|
+
getRotation(): number;
|
|
24
|
+
setRotation(rotation?: number | undefined, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
25
|
+
setBounds(bounds: number[] | AMap.Bounds, immediately?: boolean | undefined, avoid?: number[] | undefined): void;
|
|
26
|
+
panTo(lnglat: [number, number] | AMap.LngLat, duration?: number | undefined): void;
|
|
27
|
+
panBy(x: number, y: number, duration?: number | undefined): void;
|
|
28
|
+
getContainer(): HTMLDivElement;
|
|
29
|
+
add(features: {
|
|
30
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
31
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
32
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
33
|
+
clearEvents(type: AMap.EventType): any;
|
|
34
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
35
|
+
getEvents(): Record<string, any[]>;
|
|
36
|
+
} | {
|
|
37
|
+
CLASS_NAME: string;
|
|
38
|
+
_zIndex: number;
|
|
39
|
+
_opts: any;
|
|
40
|
+
setMap(map: any | null): void;
|
|
41
|
+
setzIndex(z: number): void;
|
|
42
|
+
setOpacity(opacity: number): void;
|
|
43
|
+
getOpacity(): number;
|
|
44
|
+
getzIndex(): number;
|
|
45
|
+
getOptions(): any;
|
|
46
|
+
getZooms(): [number, number];
|
|
47
|
+
setZooms(zooms: [number, number]): void;
|
|
48
|
+
getVisible(): boolean;
|
|
49
|
+
show(): void;
|
|
50
|
+
hide(): void;
|
|
51
|
+
destroy(): void;
|
|
52
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
53
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
54
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
55
|
+
clearEvents(type: AMap.EventType): any;
|
|
56
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
57
|
+
getEvents(): Record<string, any[]>;
|
|
58
|
+
} | ({
|
|
59
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
60
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
61
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
62
|
+
clearEvents(type: AMap.EventType): any;
|
|
63
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
64
|
+
getEvents(): Record<string, any[]>;
|
|
65
|
+
} | {
|
|
66
|
+
CLASS_NAME: string;
|
|
67
|
+
_zIndex: number;
|
|
68
|
+
_opts: any;
|
|
69
|
+
setMap(map: any | null): void;
|
|
70
|
+
setzIndex(z: number): void;
|
|
71
|
+
setOpacity(opacity: number): void;
|
|
72
|
+
getOpacity(): number;
|
|
73
|
+
getzIndex(): number;
|
|
74
|
+
getOptions(): any;
|
|
75
|
+
getZooms(): [number, number];
|
|
76
|
+
setZooms(zooms: [number, number]): void;
|
|
77
|
+
getVisible(): boolean;
|
|
78
|
+
show(): void;
|
|
79
|
+
hide(): void;
|
|
80
|
+
destroy(): void;
|
|
81
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
82
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
83
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
84
|
+
clearEvents(type: AMap.EventType): any;
|
|
85
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
86
|
+
getEvents(): Record<string, any[]>;
|
|
87
|
+
})[]): void;
|
|
88
|
+
remove(features: {
|
|
89
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
90
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
91
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
92
|
+
clearEvents(type: AMap.EventType): any;
|
|
93
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
94
|
+
getEvents(): Record<string, any[]>;
|
|
95
|
+
} | {
|
|
96
|
+
CLASS_NAME: string;
|
|
97
|
+
_zIndex: number;
|
|
98
|
+
_opts: any;
|
|
99
|
+
setMap(map: any | null): void;
|
|
100
|
+
setzIndex(z: number): void;
|
|
101
|
+
setOpacity(opacity: number): void;
|
|
102
|
+
getOpacity(): number;
|
|
103
|
+
getzIndex(): number;
|
|
104
|
+
getOptions(): any;
|
|
105
|
+
getZooms(): [number, number];
|
|
106
|
+
setZooms(zooms: [number, number]): void;
|
|
107
|
+
getVisible(): boolean;
|
|
108
|
+
show(): void;
|
|
109
|
+
hide(): void;
|
|
110
|
+
destroy(): void;
|
|
111
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
112
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
113
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
114
|
+
clearEvents(type: AMap.EventType): any;
|
|
115
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
116
|
+
getEvents(): Record<string, any[]>;
|
|
117
|
+
} | ({
|
|
118
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
119
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
120
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
121
|
+
clearEvents(type: AMap.EventType): any;
|
|
122
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
123
|
+
getEvents(): Record<string, any[]>;
|
|
124
|
+
} | {
|
|
125
|
+
CLASS_NAME: string;
|
|
126
|
+
_zIndex: number;
|
|
127
|
+
_opts: any;
|
|
128
|
+
setMap(map: any | null): void;
|
|
129
|
+
setzIndex(z: number): void;
|
|
130
|
+
setOpacity(opacity: number): void;
|
|
131
|
+
getOpacity(): number;
|
|
132
|
+
getzIndex(): number;
|
|
133
|
+
getOptions(): any;
|
|
134
|
+
getZooms(): [number, number];
|
|
135
|
+
setZooms(zooms: [number, number]): void;
|
|
136
|
+
getVisible(): boolean;
|
|
137
|
+
show(): void;
|
|
138
|
+
hide(): void;
|
|
139
|
+
destroy(): void;
|
|
140
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
141
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
142
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
143
|
+
clearEvents(type: AMap.EventType): any;
|
|
144
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
145
|
+
getEvents(): Record<string, any[]>;
|
|
146
|
+
})[]): void;
|
|
147
|
+
lngLatToCoords(lnglat: [number, number] | AMap.LngLat): [number, number];
|
|
148
|
+
coordsToLngLat(coords: [number, number]): AMap.LngLat;
|
|
149
|
+
lngLatToContainer(lnglat: number[] | AMap.LngLat): AMap.Pixel;
|
|
150
|
+
containerToLngLat(pixel: number[] | AMap.Pixel): AMap.LngLat;
|
|
151
|
+
coordToContainer(coord: [number, number]): [number, number];
|
|
152
|
+
containerToCoord(pixel: number[] | AMap.Pixel): number[];
|
|
153
|
+
pixelToLngLat(pixel: number[] | AMap.Pixel, z?: number | undefined): AMap.LngLat;
|
|
154
|
+
lngLatToPixel(lnglat: number[] | AMap.LngLat, z?: number | undefined): AMap.Pixel;
|
|
155
|
+
getResolution(point?: AMap.LngLat | undefined): number;
|
|
156
|
+
getScale(dpi: number): number;
|
|
157
|
+
getCity(cbk: (result: any) => void, lnglat: number[]): void;
|
|
158
|
+
setCity(cityName: string, cbk: (center: number[] | null, zoom: number | null) => void): void;
|
|
159
|
+
setFitView(overlays?: {
|
|
160
|
+
has(vector: any): boolean;
|
|
161
|
+
clear(): void;
|
|
162
|
+
setOptions(opt: any): void;
|
|
163
|
+
query(lnglat: AMap.LngLatLike): {
|
|
164
|
+
_needUpdate: boolean;
|
|
165
|
+
readonly CLASS_NAME: "Overlay" | "Overlay.Polygon" | "Overlay.CorePolygon" | "Overlay.CorePolyline" | "Overlay.Rectangle" | "Overlay.Ellipse" | "Overlay.Circle" | "Overlay.CircleMarker" | "Overlay.Polyline" | "Overlay.BezierCurve" | "Overlay.OverlayGroup" | "Overlay.GeoJSON";
|
|
166
|
+
className: "Overlay" | "Overlay.Polygon" | "Overlay.CorePolygon" | "Overlay.CorePolyline" | "Overlay.Rectangle" | "Overlay.Ellipse" | "Overlay.Circle" | "Overlay.CircleMarker" | "Overlay.Polyline" | "Overlay.BezierCurve" | "Overlay.OverlayGroup" | "Overlay.GeoJSON";
|
|
167
|
+
_isMoveing: boolean;
|
|
168
|
+
visible: boolean;
|
|
169
|
+
setMap(map: any | null): void;
|
|
170
|
+
getMap(): any | null;
|
|
171
|
+
contains(...args: any[]): boolean;
|
|
172
|
+
remove(): void;
|
|
173
|
+
hide(): void;
|
|
174
|
+
show(): void;
|
|
175
|
+
setDraggable(draggable: boolean): boolean;
|
|
176
|
+
setOptions(args?: any): void;
|
|
177
|
+
getOptions(): any;
|
|
178
|
+
getExtData(): any;
|
|
179
|
+
setExtData(extData: any): void;
|
|
180
|
+
getCursor(): any;
|
|
181
|
+
emit(type: string, events?: any): any;
|
|
182
|
+
getDraggable(): boolean;
|
|
183
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
184
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
185
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
186
|
+
clearEvents(type: AMap.EventType): any;
|
|
187
|
+
getEvents(): Record<string, any[]>;
|
|
188
|
+
} | undefined;
|
|
189
|
+
getBounds(): AMap.Bounds | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
192
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
193
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
194
|
+
clearEvents(type: AMap.EventType): any;
|
|
195
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
196
|
+
getEvents(): Record<string, any[]>;
|
|
197
|
+
}[] | undefined, immediately?: boolean | undefined, avoid?: number[] | undefined, maxZoom?: number | undefined): AMap.Bounds | undefined;
|
|
198
|
+
getFitZoomAndCenterByOverlays(overlayList: any[], avoid?: number[] | undefined, maxZoom?: number | undefined): any[] | undefined;
|
|
199
|
+
getFitZoomAndCenterByBounds(bounds: number[] | AMap.Bounds, avoid?: number[] | undefined, maxZoom?: number | undefined): any[];
|
|
200
|
+
addControl(control: AMap.Control): void;
|
|
201
|
+
removeControl(control: AMap.Control): void;
|
|
202
|
+
setMapStyle(value: string): void;
|
|
203
|
+
getMapStyle(): string;
|
|
204
|
+
getAllOverlays(type?: string | undefined): any[];
|
|
205
|
+
clearMap(): void;
|
|
206
|
+
clearInfoWindow(): void;
|
|
207
|
+
getFeatures(): string | string[] | undefined;
|
|
208
|
+
setFeatures(features: string[]): void;
|
|
209
|
+
getMapApprovalNumber(): any;
|
|
210
|
+
setMask(maskPath: number[][]): void;
|
|
211
|
+
setLabelRejectMask(reject: boolean): void;
|
|
212
|
+
className: string;
|
|
213
|
+
_resource: Resource<Iterable<{
|
|
214
|
+
destroy?: (() => void) | undefined;
|
|
215
|
+
}> & {
|
|
216
|
+
taskManger: TaskManager;
|
|
217
|
+
SDFCombineTexture: SDFCombineTexture;
|
|
218
|
+
taskThread: RenderThread;
|
|
219
|
+
drawMode: string;
|
|
220
|
+
taskQueue: TaskQueue;
|
|
221
|
+
oversea: Oversea;
|
|
222
|
+
highlight: Highlight;
|
|
223
|
+
}>;
|
|
224
|
+
_loadData?: string | undefined;
|
|
225
|
+
gl?: WebGLRenderingContext | undefined;
|
|
226
|
+
canvas?: HTMLCanvasElement | undefined;
|
|
227
|
+
WebGLParams: any;
|
|
228
|
+
_sourceManager: SourceManager;
|
|
229
|
+
getGL(): WebGLRenderingContext | undefined;
|
|
230
|
+
loadData(): string | undefined;
|
|
231
|
+
getGraphic(): {
|
|
232
|
+
hardwareAccEnabled: any;
|
|
233
|
+
};
|
|
234
|
+
getSize(): AMap.Size;
|
|
235
|
+
addLayer(layer: {
|
|
236
|
+
CLASS_NAME: string;
|
|
237
|
+
_zIndex: number;
|
|
238
|
+
_opts: any;
|
|
239
|
+
setMap(map: any | null): void;
|
|
240
|
+
setzIndex(z: number): void;
|
|
241
|
+
setOpacity(opacity: number): void;
|
|
242
|
+
getOpacity(): number;
|
|
243
|
+
getzIndex(): number;
|
|
244
|
+
getOptions(): any;
|
|
245
|
+
getZooms(): [number, number];
|
|
246
|
+
setZooms(zooms: [number, number]): void;
|
|
247
|
+
getVisible(): boolean;
|
|
248
|
+
show(): void;
|
|
249
|
+
hide(): void;
|
|
250
|
+
destroy(): void;
|
|
251
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
252
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
253
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
254
|
+
clearEvents(type: AMap.EventType): any;
|
|
255
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
256
|
+
getEvents(): Record<string, any[]>;
|
|
257
|
+
}): void;
|
|
258
|
+
removeLayer(layer: {
|
|
259
|
+
CLASS_NAME: string;
|
|
260
|
+
_zIndex: number;
|
|
261
|
+
_opts: any;
|
|
262
|
+
setMap(map: any | null): void;
|
|
263
|
+
setzIndex(z: number): void;
|
|
264
|
+
setOpacity(opacity: number): void;
|
|
265
|
+
getOpacity(): number;
|
|
266
|
+
getzIndex(): number;
|
|
267
|
+
getOptions(): any;
|
|
268
|
+
getZooms(): [number, number];
|
|
269
|
+
setZooms(zooms: [number, number]): void;
|
|
270
|
+
getVisible(): boolean;
|
|
271
|
+
show(): void;
|
|
272
|
+
hide(): void;
|
|
273
|
+
destroy(): void;
|
|
274
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
275
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
276
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
277
|
+
clearEvents(type: AMap.EventType): any;
|
|
278
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
279
|
+
getEvents(): Record<string, any[]>;
|
|
280
|
+
}): void;
|
|
281
|
+
setLayers(layers: {
|
|
282
|
+
CLASS_NAME: string;
|
|
283
|
+
_zIndex: number;
|
|
284
|
+
_opts: any;
|
|
285
|
+
setMap(map: any | null): void;
|
|
286
|
+
setzIndex(z: number): void;
|
|
287
|
+
setOpacity(opacity: number): void;
|
|
288
|
+
getOpacity(): number;
|
|
289
|
+
getzIndex(): number;
|
|
290
|
+
getOptions(): any;
|
|
291
|
+
getZooms(): [number, number];
|
|
292
|
+
setZooms(zooms: [number, number]): void;
|
|
293
|
+
getVisible(): boolean;
|
|
294
|
+
show(): void;
|
|
295
|
+
hide(): void;
|
|
296
|
+
destroy(): void;
|
|
297
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
298
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
299
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
300
|
+
clearEvents(type: AMap.EventType): any;
|
|
301
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
302
|
+
getEvents(): Record<string, any[]>;
|
|
303
|
+
}[]): void;
|
|
304
|
+
getLayers(): {
|
|
305
|
+
CLASS_NAME: string;
|
|
306
|
+
_zIndex: number;
|
|
307
|
+
_opts: any;
|
|
308
|
+
setMap(map: any | null): void;
|
|
309
|
+
setzIndex(z: number): void;
|
|
310
|
+
setOpacity(opacity: number): void;
|
|
311
|
+
getOpacity(): number;
|
|
312
|
+
getzIndex(): number;
|
|
313
|
+
getOptions(): any;
|
|
314
|
+
getZooms(): [number, number];
|
|
315
|
+
setZooms(zooms: [number, number]): void;
|
|
316
|
+
getVisible(): boolean;
|
|
317
|
+
show(): void;
|
|
318
|
+
hide(): void;
|
|
319
|
+
destroy(): void;
|
|
320
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
321
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
322
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
323
|
+
clearEvents(type: AMap.EventType): any;
|
|
324
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
325
|
+
getEvents(): Record<string, any[]>;
|
|
326
|
+
}[];
|
|
327
|
+
getLayersDangerous(): {
|
|
328
|
+
CLASS_NAME: string;
|
|
329
|
+
_zIndex: number;
|
|
330
|
+
_opts: any;
|
|
331
|
+
setMap(map: any | null): void;
|
|
332
|
+
setzIndex(z: number): void;
|
|
333
|
+
setOpacity(opacity: number): void;
|
|
334
|
+
getOpacity(): number;
|
|
335
|
+
getzIndex(): number;
|
|
336
|
+
getOptions(): any;
|
|
337
|
+
getZooms(): [number, number];
|
|
338
|
+
setZooms(zooms: [number, number]): void;
|
|
339
|
+
getVisible(): boolean;
|
|
340
|
+
show(): void;
|
|
341
|
+
hide(): void;
|
|
342
|
+
destroy(): void;
|
|
343
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
344
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
345
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
346
|
+
clearEvents(type: AMap.EventType): any;
|
|
347
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
348
|
+
getEvents(): Record<string, any[]>;
|
|
349
|
+
}[];
|
|
350
|
+
getStatus(): {
|
|
351
|
+
dragEnable: boolean;
|
|
352
|
+
zoomEnable: boolean;
|
|
353
|
+
doubleClickZoom: boolean;
|
|
354
|
+
keyboardEnable: boolean;
|
|
355
|
+
jogEnable: boolean;
|
|
356
|
+
scrollWheel: boolean;
|
|
357
|
+
zoomSpeed: number;
|
|
358
|
+
animateEnable: boolean;
|
|
359
|
+
touchZoomCenter: number;
|
|
360
|
+
touchZoom: boolean;
|
|
361
|
+
pitchEnable: boolean;
|
|
362
|
+
rotateEnable: boolean;
|
|
363
|
+
showBuildingBlock: boolean | undefined;
|
|
364
|
+
isHotspot: boolean;
|
|
365
|
+
mapstyleUrl: string;
|
|
366
|
+
features: string | string[] | undefined;
|
|
367
|
+
allBubble: boolean;
|
|
368
|
+
pickWhenMoving: boolean;
|
|
369
|
+
};
|
|
370
|
+
setStatus(status: any): void;
|
|
371
|
+
getOutseaState(): boolean;
|
|
372
|
+
getOutseaDataType(): string;
|
|
373
|
+
getMapboxStyle(): any;
|
|
374
|
+
_setStyleByPlat(style: any): void;
|
|
375
|
+
getDefaultCursor(): string;
|
|
376
|
+
setDefaultCursor(cursor: string): void;
|
|
377
|
+
getLimitBounds(): AMap.Bounds | undefined;
|
|
378
|
+
setLimitBounds(bounds: number[] | AMap.Bounds): void;
|
|
379
|
+
clearLimitBounds(): void;
|
|
380
|
+
getZooms(): [number, number];
|
|
381
|
+
setZooms(zooms: [number, number]): void;
|
|
382
|
+
getSkyColor(optimalZoom: number): number[];
|
|
383
|
+
getatmosColor(optimalZoom: number): number[];
|
|
384
|
+
getStamp(): number;
|
|
385
|
+
getStyleByIdForUser(id: any, zoom: number): any;
|
|
386
|
+
getTileZoom(z: number): any;
|
|
387
|
+
getCustomTypeByPos(pos: any): any;
|
|
388
|
+
getLabelRejectMask(): boolean;
|
|
389
|
+
setHighlight(mainKey: number, subKey: number[]): void;
|
|
390
|
+
start(): void;
|
|
391
|
+
stop(): void;
|
|
392
|
+
on(type: AMap.EventType | AMap.EventType[], fn: (e: any) => void, context?: any, once?: boolean | undefined): any;
|
|
393
|
+
off(type: AMap.EventType, fn: (e: any) => void, context?: any): any;
|
|
394
|
+
hasEvents(type: AMap.EventType, fn: (e: any) => void, context?: any): boolean;
|
|
395
|
+
clearEvents(type: AMap.EventType): any;
|
|
396
|
+
emit(type: AMap.EventType, data?: any): any;
|
|
397
|
+
getEvents(): Record<string, any[]>;
|
|
398
|
+
} | undefined> | undefined;
|
|
399
|
+
export declare const provideAmap: (mapRef: ShallowRef<AMap.Map | undefined>) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export interface AmapInfoWindowProps extends AMap.InfoOptions {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const AmapInfoWindow: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapInfoWindowProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapInfoWindowProps, Required<AmapInfoWindowProps>>, never, AmapInfoWindowProps, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapInfoWindow";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { load as loadAmap } from "@amap/amap-jsapi-loader";
|
|
2
|
+
import { GmapLoaderProps } from "../GmapLoader";
|
|
3
|
+
type AMapLoaderOptions = Parameters<typeof loadAmap>[0];
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
_AMapSecurityConfig: {
|
|
7
|
+
securityJsCode?: string;
|
|
8
|
+
serviceHost?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export interface AmapLoaderProps extends Pick<GmapLoaderProps, "fallback" | "loading" | "onChange">, Omit<AMapLoaderOptions, "key" | "version" | "plugins"> {
|
|
13
|
+
apiKey: string;
|
|
14
|
+
apiSecret?: string;
|
|
15
|
+
apiServiceHost?: string;
|
|
16
|
+
version?: string;
|
|
17
|
+
plugins?: `AMap.${AMap.PluginName}`[];
|
|
18
|
+
}
|
|
19
|
+
export declare const AmapLoader: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapLoaderProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapLoaderProps, Required<AmapLoaderProps>>, "change", AmapLoaderProps, {}>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapLoader";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type AmapMarkerProps = AMap.MarkerOptions;
|
|
2
|
+
export declare const AmapMarker: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AMap.MarkerOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AMap.MarkerOptions, Required<AMap.MarkerOptions>>, never, AMap.MarkerOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapMarker";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type AmapPolygonProps = AMap.PolygonOptions;
|
|
2
|
+
export declare const AmapPolygon: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AMap.PolygonOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AMap.PolygonOptions, Required<AMap.PolygonOptions>>, never, AMap.PolygonOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapPolygon";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type AmapPolylineProps = AMap.PolylineOptions;
|
|
2
|
+
export declare const AmapPolyline: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AMap.PolylineOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AMap.PolylineOptions, Required<AMap.PolylineOptions>>, never, AMap.PolylineOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapPolyline";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type AmapTextProps = AMap.TextOptions;
|
|
2
|
+
export declare const AmapText: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AMap.TextOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AMap.TextOptions, Required<AMap.TextOptions>>, never, AMap.TextOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapText";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ABusinessDemo: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
|
|
2
|
+
export declare const GBusinessDemo: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const demo: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const DemoGmap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
|
|
2
|
+
export declare const DemoAmap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Hello: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<{
|
|
2
|
+
className?: string | undefined;
|
|
3
|
+
qyc: number;
|
|
4
|
+
style: any;
|
|
5
|
+
}>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<{
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
qyc: number;
|
|
8
|
+
style: any;
|
|
9
|
+
}, Required<{
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
qyc: number;
|
|
12
|
+
style: any;
|
|
13
|
+
}>>, never, {
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
qyc: number;
|
|
16
|
+
style: any;
|
|
17
|
+
}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HeycarDemo: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Demo";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export interface GampProps extends google.maps.MapOptions {
|
|
3
|
+
onCenter_changed?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const Gmap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<GampProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<GampProps, Required<GampProps>>, "center_changed", GampProps, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Gmap";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import { ShallowRef } from "vue-demi";
|
|
3
|
+
export declare const gmapContext: unique symbol;
|
|
4
|
+
export declare const useGmap: () => ShallowRef<google.maps.Map | undefined> | undefined;
|
|
5
|
+
export declare const provideGmap: (mapRef: ShallowRef<google.maps.Map | undefined>) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export type GmapAdvancedMarkerViewProps = google.maps.marker.AdvancedMarkerViewOptions;
|
|
3
|
+
export declare const GmapAdvancedMarkerView: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<google.maps.marker.AdvancedMarkerViewOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<google.maps.marker.AdvancedMarkerViewOptions, Required<google.maps.marker.AdvancedMarkerViewOptions>>, never, google.maps.marker.AdvancedMarkerViewOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapAdvancedMarkerView";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export interface GmapInfoWindowProps extends google.maps.InfoWindowOptions {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const GmapInfoWindow: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<GmapInfoWindowProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<GmapInfoWindowProps, Required<GmapInfoWindowProps>>, never, GmapInfoWindowProps, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapInfoWindow";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LoaderOptions } from "@googlemaps/js-api-loader";
|
|
2
|
+
import { VueNode } from "../../types/helper";
|
|
3
|
+
export declare enum Status {
|
|
4
|
+
LOADING = "LOADING",
|
|
5
|
+
FAILURE = "FAILURE",
|
|
6
|
+
SUCCESS = "SUCCESS"
|
|
7
|
+
}
|
|
8
|
+
export interface GmapLoaderProps extends LoaderOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Render prop used to switch to loading component.
|
|
11
|
+
*/
|
|
12
|
+
loading?: () => VueNode;
|
|
13
|
+
/**
|
|
14
|
+
* Render prop used to switch to error fallback component.
|
|
15
|
+
*/
|
|
16
|
+
fallback?: () => VueNode;
|
|
17
|
+
/**
|
|
18
|
+
* Callback prop used to access `@googlemaps/js-api-loader` and `Status`.
|
|
19
|
+
*
|
|
20
|
+
* Note: The callback be executed multiple times in the lifecycle of the component.
|
|
21
|
+
*/
|
|
22
|
+
onChange?: (status: Status) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A component to wrap the loading of the Google Maps JavaScript API.
|
|
26
|
+
*
|
|
27
|
+
* ```
|
|
28
|
+
* const MyApp = () => (
|
|
29
|
+
* <GmapLoader apiKey={'YOUR_API_KEY'}>
|
|
30
|
+
* <MyMapComponent />
|
|
31
|
+
* </GmapLoader>
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param props
|
|
36
|
+
*/
|
|
37
|
+
export declare const GmapLoader: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<GmapLoaderProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<GmapLoaderProps, Required<GmapLoaderProps>>, "change", GmapLoaderProps, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapLoader";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export type GmapMarkerProps = google.maps.MarkerOptions;
|
|
3
|
+
export declare const GmapMarker: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<google.maps.MarkerOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<google.maps.MarkerOptions, Required<google.maps.MarkerOptions>>, never, google.maps.MarkerOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapMarker";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export type GmapPolygonProps = google.maps.PolygonOptions;
|
|
3
|
+
export declare const GmapPolygon: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<google.maps.PolygonOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<google.maps.PolygonOptions, Required<google.maps.PolygonOptions>>, never, google.maps.PolygonOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapPolygon";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export type GmapPolylineProps = google.maps.PolylineOptions;
|
|
3
|
+
export declare const GmapPolyline: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<google.maps.PolylineOptions>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<google.maps.PolylineOptions, Required<google.maps.PolylineOptions>>, never, google.maps.PolylineOptions, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GmapPolyline";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AmapProps } from "../Amap";
|
|
2
|
+
import { GmapLoaderProps } from "../GmapLoader";
|
|
3
|
+
import { MapSupplierPayolad } from "./useMapSupplier";
|
|
4
|
+
export type MapProviderProps = MapSupplierPayolad;
|
|
5
|
+
export declare const MapProvider: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<MapSupplierPayolad>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<MapSupplierPayolad, Required<MapSupplierPayolad>>, never, MapSupplierPayolad, {}>;
|
|
6
|
+
export type HeycarMapProps = Pick<GmapLoaderProps, "fallback" | "loading"> & Pick<AmapProps, "center" | "zoom">;
|
|
7
|
+
export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, never, HeycarMapProps, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MapProvider";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type MapSupplier = "gmap" | "amap";
|
|
2
|
+
export interface MapSupplierPayolad {
|
|
3
|
+
gmapKey: string;
|
|
4
|
+
gmapId: string;
|
|
5
|
+
amapKey: string;
|
|
6
|
+
amapSecret?: string;
|
|
7
|
+
amapServiceHost?: string;
|
|
8
|
+
supplier: MapSupplier;
|
|
9
|
+
}
|
|
10
|
+
export declare const useMapSupplier: () => MapSupplierPayolad;
|
|
11
|
+
export declare const provideMapSupplier: (payload: MapSupplierPayolad) => void;
|