expo-gaode-map-navigation 2.0.18 → 2.0.19
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/android/build.gradle +4 -25
- package/build/ExpoGaodeMapNaviView.js +2 -1
- package/build/ExpoGaodeMapNaviView.js.map +1 -1
- package/build/ExpoGaodeMapNavigationModule.d.ts +1 -1
- package/build/ExpoGaodeMapNavigationModule.d.ts.map +1 -1
- package/build/ExpoGaodeMapNavigationModule.js.map +1 -1
- package/build/map/ExpoGaodeMapModule.d.ts +3 -2
- package/build/map/ExpoGaodeMapModule.d.ts.map +1 -1
- package/build/map/ExpoGaodeMapModule.js +3 -1
- package/build/map/ExpoGaodeMapModule.js.map +1 -1
- package/build/map/ExpoGaodeMapOfflineModule.js +1 -1
- package/build/map/ExpoGaodeMapOfflineModule.js.map +1 -1
- package/build/map/ExpoGaodeMapView.js +2 -8
- package/build/map/ExpoGaodeMapView.js.map +1 -1
- package/build/map/components/FoldableMapView.d.ts +3 -2
- package/build/map/components/FoldableMapView.d.ts.map +1 -1
- package/build/map/components/FoldableMapView.js +2 -1
- package/build/map/components/FoldableMapView.js.map +1 -1
- package/build/map/components/MapUI.js +2 -1
- package/build/map/components/MapUI.js.map +1 -1
- package/build/map/components/overlays/Circle.d.ts +1 -1
- package/build/map/components/overlays/Circle.d.ts.map +1 -1
- package/build/map/components/overlays/Circle.js +2 -1
- package/build/map/components/overlays/Circle.js.map +1 -1
- package/build/map/components/overlays/Cluster.d.ts +1 -1
- package/build/map/components/overlays/Cluster.d.ts.map +1 -1
- package/build/map/components/overlays/Cluster.js +2 -1
- package/build/map/components/overlays/Cluster.js.map +1 -1
- package/build/map/components/overlays/HeatMap.d.ts +1 -1
- package/build/map/components/overlays/HeatMap.d.ts.map +1 -1
- package/build/map/components/overlays/HeatMap.js +2 -1
- package/build/map/components/overlays/HeatMap.js.map +1 -1
- package/build/map/components/overlays/Marker.d.ts +1 -1
- package/build/map/components/overlays/Marker.d.ts.map +1 -1
- package/build/map/components/overlays/Marker.js +2 -5
- package/build/map/components/overlays/Marker.js.map +1 -1
- package/build/map/components/overlays/MultiPoint.d.ts +1 -2
- package/build/map/components/overlays/MultiPoint.d.ts.map +1 -1
- package/build/map/components/overlays/MultiPoint.js +2 -1
- package/build/map/components/overlays/MultiPoint.js.map +1 -1
- package/build/map/components/overlays/Polygon.d.ts +1 -1
- package/build/map/components/overlays/Polygon.d.ts.map +1 -1
- package/build/map/components/overlays/Polygon.js +2 -1
- package/build/map/components/overlays/Polygon.js.map +1 -1
- package/build/map/components/overlays/Polyline.d.ts +1 -1
- package/build/map/components/overlays/Polyline.d.ts.map +1 -1
- package/build/map/components/overlays/Polyline.js +2 -1
- package/build/map/components/overlays/Polyline.js.map +1 -1
- package/build/map/search/ExpoGaodeMapSearchModule.d.ts +1 -1
- package/build/map/search/ExpoGaodeMapSearchModule.d.ts.map +1 -1
- package/build/map/search/ExpoGaodeMapSearchModule.js.map +1 -1
- package/build/map/types/common.types.d.ts +1 -1
- package/build/map/types/common.types.d.ts.map +1 -1
- package/build/map/types/common.types.js.map +1 -1
- package/build/map/types/map-view.types.d.ts +2 -2
- package/build/map/types/map-view.types.d.ts.map +1 -1
- package/build/map/types/map-view.types.js.map +1 -1
- package/build/map/utils/GeoUtils.d.ts +1 -1
- package/build/map/utils/GeoUtils.d.ts.map +1 -1
- package/build/map/utils/GeoUtils.js +2 -2
- package/build/map/utils/GeoUtils.js.map +1 -1
- package/build/route-geometry.d.ts.map +1 -1
- package/build/route-geometry.js +24 -8
- package/build/route-geometry.js.map +1 -1
- package/build/src/ExpoGaodeMapNaviView.d.ts +67 -0
- package/build/src/ExpoGaodeMapNaviView.d.ts.map +1 -0
- package/build/src/ExpoGaodeMapNaviView.js +138 -0
- package/build/src/ExpoGaodeMapNaviView.js.map +1 -0
- package/build/src/ExpoGaodeMapNavigation.types.d.ts +2 -0
- package/build/src/ExpoGaodeMapNavigation.types.d.ts.map +1 -0
- package/build/src/ExpoGaodeMapNavigation.types.js +3 -0
- package/build/src/ExpoGaodeMapNavigation.types.js.map +1 -0
- package/build/src/ExpoGaodeMapNavigationModule.d.ts +4 -0
- package/build/src/ExpoGaodeMapNavigationModule.d.ts.map +1 -0
- package/build/src/ExpoGaodeMapNavigationModule.js +27 -0
- package/build/src/ExpoGaodeMapNavigationModule.js.map +1 -0
- package/build/src/index.d.ts +47 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/src/index.js +48 -0
- package/build/src/index.js.map +1 -0
- package/build/src/map/ExpoGaodeMapModule.d.ts +256 -0
- package/build/src/map/ExpoGaodeMapModule.d.ts.map +1 -0
- package/build/src/map/ExpoGaodeMapModule.js +813 -0
- package/build/src/map/ExpoGaodeMapModule.js.map +1 -0
- package/build/src/map/ExpoGaodeMapOfflineModule.d.ts +145 -0
- package/build/src/map/ExpoGaodeMapOfflineModule.d.ts.map +1 -0
- package/build/src/map/ExpoGaodeMapOfflineModule.js +24 -0
- package/build/src/map/ExpoGaodeMapOfflineModule.js.map +1 -0
- package/build/src/map/ExpoGaodeMapView.d.ts +23 -0
- package/build/src/map/ExpoGaodeMapView.d.ts.map +1 -0
- package/build/src/map/ExpoGaodeMapView.js +173 -0
- package/build/src/map/ExpoGaodeMapView.js.map +1 -0
- package/build/src/map/components/FoldableMapView.d.ts +39 -0
- package/build/src/map/components/FoldableMapView.d.ts.map +1 -0
- package/build/src/map/components/FoldableMapView.js +171 -0
- package/build/src/map/components/FoldableMapView.js.map +1 -0
- package/build/src/map/components/MapContext.d.ts +13 -0
- package/build/src/map/components/MapContext.d.ts.map +1 -0
- package/build/src/map/components/MapContext.js +18 -0
- package/build/src/map/components/MapContext.js.map +1 -0
- package/build/src/map/components/MapUI.d.ts +19 -0
- package/build/src/map/components/MapUI.d.ts.map +1 -0
- package/build/src/map/components/MapUI.js +24 -0
- package/build/src/map/components/MapUI.js.map +1 -0
- package/build/src/map/components/overlays/Circle.d.ts +13 -0
- package/build/src/map/components/overlays/Circle.d.ts.map +1 -0
- package/build/src/map/components/overlays/Circle.js +20 -0
- package/build/src/map/components/overlays/Circle.js.map +1 -0
- package/build/src/map/components/overlays/Cluster.d.ts +12 -0
- package/build/src/map/components/overlays/Cluster.d.ts.map +1 -0
- package/build/src/map/components/overlays/Cluster.js +16 -0
- package/build/src/map/components/overlays/Cluster.js.map +1 -0
- package/build/src/map/components/overlays/HeatMap.d.ts +12 -0
- package/build/src/map/components/overlays/HeatMap.d.ts.map +1 -0
- package/build/src/map/components/overlays/HeatMap.js +46 -0
- package/build/src/map/components/overlays/HeatMap.js.map +1 -0
- package/build/src/map/components/overlays/Marker.d.ts +16 -0
- package/build/src/map/components/overlays/Marker.d.ts.map +1 -0
- package/build/src/map/components/overlays/Marker.js +125 -0
- package/build/src/map/components/overlays/Marker.js.map +1 -0
- package/build/src/map/components/overlays/MultiPoint.d.ts +9 -0
- package/build/src/map/components/overlays/MultiPoint.d.ts.map +1 -0
- package/build/src/map/components/overlays/MultiPoint.js +15 -0
- package/build/src/map/components/overlays/MultiPoint.js.map +1 -0
- package/build/src/map/components/overlays/Polygon.d.ts +12 -0
- package/build/src/map/components/overlays/Polygon.d.ts.map +1 -0
- package/build/src/map/components/overlays/Polygon.js +20 -0
- package/build/src/map/components/overlays/Polygon.js.map +1 -0
- package/build/src/map/components/overlays/Polyline.d.ts +12 -0
- package/build/src/map/components/overlays/Polyline.d.ts.map +1 -0
- package/build/src/map/components/overlays/Polyline.js +20 -0
- package/build/src/map/components/overlays/Polyline.js.map +1 -0
- package/build/src/map/components/overlays/index.d.ts +8 -0
- package/build/src/map/components/overlays/index.d.ts.map +1 -0
- package/build/src/map/components/overlays/index.js +8 -0
- package/build/src/map/components/overlays/index.js.map +1 -0
- package/build/src/map/index.d.ts +35 -0
- package/build/src/map/index.d.ts.map +1 -0
- package/build/src/map/index.js +48 -0
- package/build/src/map/index.js.map +1 -0
- package/build/src/map/search/ExpoGaodeMapSearch.types.d.ts +340 -0
- package/build/src/map/search/ExpoGaodeMapSearch.types.d.ts.map +1 -0
- package/build/src/map/search/ExpoGaodeMapSearch.types.js +19 -0
- package/build/src/map/search/ExpoGaodeMapSearch.types.js.map +1 -0
- package/build/src/map/search/ExpoGaodeMapSearchModule.d.ts +74 -0
- package/build/src/map/search/ExpoGaodeMapSearchModule.d.ts.map +1 -0
- package/build/src/map/search/ExpoGaodeMapSearchModule.js +48 -0
- package/build/src/map/search/ExpoGaodeMapSearchModule.js.map +1 -0
- package/build/src/map/search/index.d.ts +156 -0
- package/build/src/map/search/index.d.ts.map +1 -0
- package/build/src/map/search/index.js +171 -0
- package/build/src/map/search/index.js.map +1 -0
- package/build/src/map/types/common.types.d.ts +199 -0
- package/build/src/map/types/common.types.d.ts.map +1 -0
- package/build/src/map/types/common.types.js +33 -0
- package/build/src/map/types/common.types.js.map +1 -0
- package/build/src/map/types/index.d.ts +13 -0
- package/build/src/map/types/index.d.ts.map +1 -0
- package/build/src/map/types/index.js +7 -0
- package/build/src/map/types/index.js.map +1 -0
- package/build/src/map/types/location.types.d.ts +358 -0
- package/build/src/map/types/location.types.d.ts.map +1 -0
- package/build/src/map/types/location.types.js +93 -0
- package/build/src/map/types/location.types.js.map +1 -0
- package/build/src/map/types/map-view.types.d.ts +340 -0
- package/build/src/map/types/map-view.types.d.ts.map +1 -0
- package/build/src/map/types/map-view.types.js +6 -0
- package/build/src/map/types/map-view.types.js.map +1 -0
- package/build/src/map/types/native-module.types.d.ts +395 -0
- package/build/src/map/types/native-module.types.d.ts.map +1 -0
- package/build/src/map/types/native-module.types.js +5 -0
- package/build/src/map/types/native-module.types.js.map +1 -0
- package/build/src/map/types/offline.types.d.ts +133 -0
- package/build/src/map/types/offline.types.d.ts.map +1 -0
- package/build/src/map/types/offline.types.js +5 -0
- package/build/src/map/types/offline.types.js.map +1 -0
- package/build/src/map/types/overlays.types.d.ts +456 -0
- package/build/src/map/types/overlays.types.d.ts.map +1 -0
- package/build/src/map/types/overlays.types.js +6 -0
- package/build/src/map/types/overlays.types.js.map +1 -0
- package/build/src/map/types/route-playback.types.d.ts +28 -0
- package/build/src/map/types/route-playback.types.d.ts.map +1 -0
- package/build/src/map/types/route-playback.types.js +2 -0
- package/build/src/map/types/route-playback.types.js.map +1 -0
- package/build/src/map/utils/ErrorHandler.d.ts +121 -0
- package/build/src/map/utils/ErrorHandler.d.ts.map +1 -0
- package/build/src/map/utils/ErrorHandler.js +470 -0
- package/build/src/map/utils/ErrorHandler.js.map +1 -0
- package/build/src/map/utils/GeoUtils.d.ts +21 -0
- package/build/src/map/utils/GeoUtils.d.ts.map +1 -0
- package/build/src/map/utils/GeoUtils.js +78 -0
- package/build/src/map/utils/GeoUtils.js.map +1 -0
- package/build/src/map/utils/OfflineMapManager.d.ts +153 -0
- package/build/src/map/utils/OfflineMapManager.d.ts.map +1 -0
- package/build/src/map/utils/OfflineMapManager.js +217 -0
- package/build/src/map/utils/OfflineMapManager.js.map +1 -0
- package/build/src/map/utils/PermissionUtils.d.ts +92 -0
- package/build/src/map/utils/PermissionUtils.d.ts.map +1 -0
- package/build/src/map/utils/PermissionUtils.js +252 -0
- package/build/src/map/utils/PermissionUtils.js.map +1 -0
- package/build/src/map/utils/PlatformDetector.d.ts +103 -0
- package/build/src/map/utils/PlatformDetector.d.ts.map +1 -0
- package/build/src/map/utils/PlatformDetector.js +178 -0
- package/build/src/map/utils/PlatformDetector.js.map +1 -0
- package/build/src/map/utils/lazyNativeViewManager.d.ts +3 -0
- package/build/src/map/utils/lazyNativeViewManager.d.ts.map +1 -0
- package/build/src/map/utils/lazyNativeViewManager.js +11 -0
- package/build/src/map/utils/lazyNativeViewManager.js.map +1 -0
- package/build/src/route-geometry.d.ts +13 -0
- package/build/src/route-geometry.d.ts.map +1 -0
- package/build/src/route-geometry.js +154 -0
- package/build/src/route-geometry.js.map +1 -0
- package/build/src/route-planning.d.ts +21 -0
- package/build/src/route-planning.d.ts.map +1 -0
- package/build/src/route-planning.js +67 -0
- package/build/src/route-planning.js.map +1 -0
- package/build/src/types/coordinates.types.d.ts +25 -0
- package/build/src/types/coordinates.types.d.ts.map +1 -0
- package/build/src/types/coordinates.types.js +6 -0
- package/build/src/types/coordinates.types.js.map +1 -0
- package/build/src/types/independent.types.d.ts +385 -0
- package/build/src/types/independent.types.d.ts.map +1 -0
- package/build/src/types/independent.types.js +2 -0
- package/build/src/types/independent.types.js.map +1 -0
- package/build/src/types/index.d.ts +6 -0
- package/build/src/types/index.d.ts.map +1 -0
- package/build/src/types/index.js +7 -0
- package/build/src/types/index.js.map +1 -0
- package/build/src/types/native-module.types.d.ts +74 -0
- package/build/src/types/native-module.types.d.ts.map +1 -0
- package/build/src/types/native-module.types.js +3 -0
- package/build/src/types/native-module.types.js.map +1 -0
- package/build/src/types/naviview.types.d.ts +562 -0
- package/build/src/types/naviview.types.d.ts.map +1 -0
- package/build/src/types/naviview.types.js +2 -0
- package/build/src/types/naviview.types.js.map +1 -0
- package/build/src/types/route.types.d.ts +414 -0
- package/build/src/types/route.types.d.ts.map +1 -0
- package/build/src/types/route.types.js +137 -0
- package/build/src/types/route.types.js.map +1 -0
- package/build/src/web-api-fallback.d.ts +5 -0
- package/build/src/web-api-fallback.d.ts.map +1 -0
- package/build/src/web-api-fallback.js +160 -0
- package/build/src/web-api-fallback.js.map +1 -0
- package/build/src/web-route-following.d.ts +3 -0
- package/build/src/web-route-following.d.ts.map +1 -0
- package/build/src/web-route-following.js +178 -0
- package/build/src/web-route-following.js.map +1 -0
- package/build/types/native-module.types.d.ts +2 -2
- package/build/types/native-module.types.d.ts.map +1 -1
- package/build/types/native-module.types.js.map +1 -1
- package/build/types/naviview.types.d.ts +1 -1
- package/build/types/naviview.types.d.ts.map +1 -1
- package/build/types/naviview.types.js.map +1 -1
- package/build/web-api-fallback.d.ts.map +1 -1
- package/build/web-api-fallback.js +0 -1
- package/build/web-api-fallback.js.map +1 -1
- package/ios/map/ExpoGaodeMapView.swift +145 -3
- package/ios/map/managers/UIManager.swift +3 -0
- package/package.json +10 -7
- package/plugin/build/withGaodeMap.js +19 -14
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import ExpoGaodeMapNavigationModule from './ExpoGaodeMapNavigationModule';
|
|
2
|
+
import { ExpoGaodeMapNaviView, type ExpoGaodeMapNaviViewRef } from './ExpoGaodeMapNaviView';
|
|
3
|
+
export * from './map';
|
|
4
|
+
import { DriveStrategy, RouteType, WalkStrategy, RideStrategy, TruckSize, TravelStrategy } from './types';
|
|
5
|
+
import { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute } from './route-planning';
|
|
6
|
+
import { buildAnchorWaypointsFromWebRoute } from './route-geometry';
|
|
7
|
+
import { followWebPlannedRoute } from './web-route-following';
|
|
8
|
+
export { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute, };
|
|
9
|
+
export { buildAnchorWaypointsFromWebRoute };
|
|
10
|
+
export { followWebPlannedRoute };
|
|
11
|
+
export { ExpoGaodeMapNavigationModule };
|
|
12
|
+
export { ExpoGaodeMapNaviView, type ExpoGaodeMapNaviViewRef };
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated 请使用 `ExpoGaodeMapNaviView`
|
|
15
|
+
*/
|
|
16
|
+
export declare const NaviView: import("react").ForwardRefExoticComponent<import("./types").ExpoGaodeMapNaviViewProps & import("react").RefAttributes<ExpoGaodeMapNaviViewRef>>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated 请使用 `ExpoGaodeMapNaviViewRef`
|
|
19
|
+
*/
|
|
20
|
+
export type NaviViewRef = ExpoGaodeMapNaviViewRef;
|
|
21
|
+
export type { NaviPoint, RouteOptions, DriveRouteOptions, WalkRouteOptions, RideRouteOptions, EBikeRouteOptions, TransitRouteOptions, TruckRouteOptions, RouteResult, DriveRouteResult, IndependentRouteResult, IndependentDriveRouteOptions, IndependentTruckRouteOptions, IndependentWalkRouteOptions, IndependentRideRouteOptions, SelectIndependentRouteOptions, StartNaviWithIndependentPathOptions, OfficialNaviPageOptions, ClearIndependentRouteOptions, MotorcycleRouteOptions, IndependentMotorcycleRouteOptions, BuildAnchorWaypointsOptions, FollowWebPlannedRouteOptions, FollowWebPlannedRouteResult, FollowWebPlannedRouteCandidate, WebPlannedRoute, NaviInfoUpdateEvent, NaviLaneInfoEvent, NaviTrafficStatusesEvent, NaviVisualStateEvent, ExpoGaodeMapNaviViewProps, } from './types';
|
|
22
|
+
export { RouteType, DriveStrategy, WalkStrategy, RideStrategy, TruckSize, TravelStrategy, };
|
|
23
|
+
declare const ExpoGaodeMapNavigation: {
|
|
24
|
+
initNavigation: () => void;
|
|
25
|
+
destroyAllCalculators: () => void;
|
|
26
|
+
calculateRoute: typeof calculateRoute;
|
|
27
|
+
calculateDriveRoute: typeof calculateDriveRoute;
|
|
28
|
+
calculateWalkRoute: (options: import("./types").WalkRouteOptions) => Promise<import("./types").RouteResult>;
|
|
29
|
+
calculateRideRoute: (options: import("./types").RideRouteOptions) => Promise<import("./types").RouteResult>;
|
|
30
|
+
calculateEBikeRoute: (options: import("./types").EBikeRouteOptions) => Promise<import("./types").RouteResult>;
|
|
31
|
+
calculateTransitRoute: typeof calculateTransitRoute;
|
|
32
|
+
calculateTruckRoute: (options: import("./types").TruckRouteOptions) => Promise<import("./types").DriveRouteResult>;
|
|
33
|
+
calculateMotorcycleRoute: (options: import("./types").MotorcycleRouteOptions) => Promise<import("./types").DriveRouteResult>;
|
|
34
|
+
buildAnchorWaypointsFromWebRoute: typeof buildAnchorWaypointsFromWebRoute;
|
|
35
|
+
followWebPlannedRoute: typeof followWebPlannedRoute;
|
|
36
|
+
independentDriveRoute: (options: import("./types").IndependentDriveRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
37
|
+
independentTruckRoute: (options: import("./types").IndependentTruckRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
38
|
+
independentWalkRoute: (options: import("./types").IndependentWalkRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
39
|
+
independentRideRoute: (options: import("./types").IndependentRideRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
40
|
+
independentMotorcycleRoute: (options: import("./types").IndependentMotorcycleRouteOptions) => Promise<import("./types").IndependentRouteResult>;
|
|
41
|
+
selectIndependentRoute: (options: import("./types").SelectIndependentRouteOptions) => Promise<boolean>;
|
|
42
|
+
startNaviWithIndependentPath: (options: import("./types").StartNaviWithIndependentPathOptions) => Promise<boolean>;
|
|
43
|
+
openOfficialNaviPage: (options: import("./types").OfficialNaviPageOptions) => Promise<boolean>;
|
|
44
|
+
clearIndependentRoute: (options: import("./types").ClearIndependentRouteOptions) => Promise<boolean>;
|
|
45
|
+
};
|
|
46
|
+
export default ExpoGaodeMapNavigation;
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAC;AAChC,cAAc,OAAO,CAAC;AACtB,OAAO,EACL,aAAa,EACb,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAq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C3B,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,SAAS,EACT,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,cAAc,GACf,CAAC;AAGF,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;CA6B3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import ExpoGaodeMapNavigationModule from './ExpoGaodeMapNavigationModule';
|
|
2
|
+
import { ExpoGaodeMapNaviView, } from './ExpoGaodeMapNaviView';
|
|
3
|
+
export * from './map';
|
|
4
|
+
import { DriveStrategy, RouteType, WalkStrategy, RideStrategy, TruckSize, TravelStrategy, } from './types';
|
|
5
|
+
import { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute, } from './route-planning';
|
|
6
|
+
import { buildAnchorWaypointsFromWebRoute } from './route-geometry';
|
|
7
|
+
import { followWebPlannedRoute, } from './web-route-following';
|
|
8
|
+
export { calculateRoute, calculateDriveRoute, calculateWalkRoute, calculateRideRoute, calculateEBikeRoute, calculateTransitRoute, calculateTruckRoute, calculateMotorcycleRoute, initNavigation, destroyAllCalculators, independentDriveRoute, independentTruckRoute, independentWalkRoute, independentRideRoute, independentMotorcycleRoute, selectIndependentRoute, startNaviWithIndependentPath, openOfficialNaviPage, clearIndependentRoute, };
|
|
9
|
+
export { buildAnchorWaypointsFromWebRoute };
|
|
10
|
+
export { followWebPlannedRoute };
|
|
11
|
+
export { ExpoGaodeMapNavigationModule };
|
|
12
|
+
// 导出官方导航界面组件
|
|
13
|
+
export { ExpoGaodeMapNaviView };
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated 请使用 `ExpoGaodeMapNaviView`
|
|
16
|
+
*/
|
|
17
|
+
export const NaviView = ExpoGaodeMapNaviView;
|
|
18
|
+
export { RouteType, DriveStrategy, WalkStrategy, RideStrategy, TruckSize, TravelStrategy, };
|
|
19
|
+
// 默认导出保留为兼容层,方便老代码一次性挂载整个导航 API。
|
|
20
|
+
const ExpoGaodeMapNavigation = {
|
|
21
|
+
// 初始化
|
|
22
|
+
initNavigation,
|
|
23
|
+
destroyAllCalculators,
|
|
24
|
+
// 路径规划
|
|
25
|
+
calculateRoute,
|
|
26
|
+
calculateDriveRoute,
|
|
27
|
+
calculateWalkRoute,
|
|
28
|
+
calculateRideRoute,
|
|
29
|
+
calculateEBikeRoute,
|
|
30
|
+
calculateTransitRoute,
|
|
31
|
+
calculateTruckRoute,
|
|
32
|
+
calculateMotorcycleRoute,
|
|
33
|
+
buildAnchorWaypointsFromWebRoute,
|
|
34
|
+
followWebPlannedRoute,
|
|
35
|
+
// 独立路径规划
|
|
36
|
+
independentDriveRoute,
|
|
37
|
+
independentTruckRoute,
|
|
38
|
+
independentWalkRoute,
|
|
39
|
+
independentRideRoute,
|
|
40
|
+
independentMotorcycleRoute,
|
|
41
|
+
// 独立路径组操作
|
|
42
|
+
selectIndependentRoute,
|
|
43
|
+
startNaviWithIndependentPath,
|
|
44
|
+
openOfficialNaviPage,
|
|
45
|
+
clearIndependentRoute,
|
|
46
|
+
};
|
|
47
|
+
export default ExpoGaodeMapNavigation;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,oBAAoB,GAErB,MAAM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cAAc;IACd,qBAAqB;IAErB,OAAO;IACP,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,wBAAwB;IACxB,gCAAgC;IAChC,qBAAqB;IAErB,SAAS;IACT,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;IAE1B,UAAU;IACV,sBAAsB;IACtB,4BAA4B;IAC5B,oBAAoB;IACpB,qBAAqB;CACtB,CAAC;AAEF,eAAe,sBAAsB,CAAC","sourcesContent":["import ExpoGaodeMapNavigationModule from './ExpoGaodeMapNavigationModule';\nimport {\n ExpoGaodeMapNaviView,\n type ExpoGaodeMapNaviViewRef,\n} from './ExpoGaodeMapNaviView';\nexport * from './map';\nimport {\n DriveStrategy,\n RouteType,\n WalkStrategy,\n RideStrategy,\n TruckSize,\n TravelStrategy,\n} from './types';\nimport {\n calculateRoute,\n calculateDriveRoute,\n calculateWalkRoute,\n calculateRideRoute,\n calculateEBikeRoute,\n calculateTransitRoute,\n calculateTruckRoute,\n calculateMotorcycleRoute,\n initNavigation,\n destroyAllCalculators,\n independentDriveRoute,\n independentTruckRoute,\n independentWalkRoute,\n independentRideRoute,\n independentMotorcycleRoute,\n selectIndependentRoute,\n startNaviWithIndependentPath,\n openOfficialNaviPage,\n clearIndependentRoute,\n} from './route-planning';\nimport { buildAnchorWaypointsFromWebRoute } from './route-geometry';\nimport {\n followWebPlannedRoute,\n} from './web-route-following';\n\nexport {\n calculateRoute,\n calculateDriveRoute,\n calculateWalkRoute,\n calculateRideRoute,\n calculateEBikeRoute,\n calculateTransitRoute,\n calculateTruckRoute,\n calculateMotorcycleRoute,\n initNavigation,\n destroyAllCalculators,\n independentDriveRoute,\n independentTruckRoute,\n independentWalkRoute,\n independentRideRoute,\n independentMotorcycleRoute,\n selectIndependentRoute,\n startNaviWithIndependentPath,\n openOfficialNaviPage,\n clearIndependentRoute,\n};\nexport { buildAnchorWaypointsFromWebRoute };\nexport { followWebPlannedRoute };\n\nexport { ExpoGaodeMapNavigationModule };\n\n// 导出官方导航界面组件\nexport { ExpoGaodeMapNaviView, type ExpoGaodeMapNaviViewRef };\n\n/**\n * @deprecated 请使用 `ExpoGaodeMapNaviView`\n */\nexport const NaviView = ExpoGaodeMapNaviView;\n\n/**\n * @deprecated 请使用 `ExpoGaodeMapNaviViewRef`\n */\nexport type NaviViewRef = ExpoGaodeMapNaviViewRef;\n\n// 导出导航相关类型与枚举(Coordinates 从 map 模块导出)\nexport type {\n NaviPoint,\n RouteOptions,\n DriveRouteOptions,\n WalkRouteOptions,\n RideRouteOptions,\n EBikeRouteOptions,\n TransitRouteOptions,\n TruckRouteOptions,\n RouteResult,\n DriveRouteResult,\n IndependentRouteResult,\n IndependentDriveRouteOptions,\n IndependentTruckRouteOptions,\n IndependentWalkRouteOptions,\n IndependentRideRouteOptions,\n SelectIndependentRouteOptions,\n StartNaviWithIndependentPathOptions,\n OfficialNaviPageOptions,\n ClearIndependentRouteOptions,\n MotorcycleRouteOptions,\n IndependentMotorcycleRouteOptions,\n BuildAnchorWaypointsOptions,\n FollowWebPlannedRouteOptions,\n FollowWebPlannedRouteResult,\n FollowWebPlannedRouteCandidate,\n WebPlannedRoute,\n NaviInfoUpdateEvent,\n NaviLaneInfoEvent,\n NaviTrafficStatusesEvent,\n NaviVisualStateEvent,\n ExpoGaodeMapNaviViewProps,\n} from './types';\n\nexport {\n RouteType,\n DriveStrategy,\n WalkStrategy,\n RideStrategy,\n TruckSize,\n TravelStrategy,\n};\n\n// 默认导出保留为兼容层,方便老代码一次性挂载整个导航 API。\nconst ExpoGaodeMapNavigation = {\n // 初始化\n initNavigation,\n destroyAllCalculators,\n\n // 路径规划\n calculateRoute,\n calculateDriveRoute,\n calculateWalkRoute,\n calculateRideRoute,\n calculateEBikeRoute,\n calculateTransitRoute,\n calculateTruckRoute,\n calculateMotorcycleRoute,\n buildAnchorWaypointsFromWebRoute,\n followWebPlannedRoute,\n\n // 独立路径规划\n independentDriveRoute,\n independentTruckRoute,\n independentWalkRoute,\n independentRideRoute,\n independentMotorcycleRoute,\n\n // 独立路径组操作\n selectIndependentRoute,\n startNaviWithIndependentPath,\n openOfficialNaviPage,\n clearIndependentRoute,\n};\n\nexport default ExpoGaodeMapNavigation;\n"]}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { LatLng, Coordinates, ReGeocode, LocationListener, LatLngPoint, CoordinateType } from './types';
|
|
2
|
+
import type { ExpoGaodeMapModule as NativeExpoGaodeMapModule } from './types/native-module.types';
|
|
3
|
+
import { PrivacyConfig, PrivacyStatus, SDKConfig, PermissionStatus } from './types/common.types';
|
|
4
|
+
declare const helperMethods: {
|
|
5
|
+
/**
|
|
6
|
+
* 初始化 SDK,并缓存配置(包含 webKey)
|
|
7
|
+
* 注意:允许不提供任何 API Key,因为原生端可能已通过 Config Plugin 配置
|
|
8
|
+
*/
|
|
9
|
+
initSDK(config: SDKConfig): void;
|
|
10
|
+
isSDKInitialized(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 设置当前隐私协议版本
|
|
13
|
+
* 当版本号变化时,之前的同意状态会失效
|
|
14
|
+
*/
|
|
15
|
+
setPrivacyVersion(version: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* 清空已持久化的隐私同意状态
|
|
18
|
+
*/
|
|
19
|
+
resetPrivacyConsent(): void;
|
|
20
|
+
/**
|
|
21
|
+
* 一次性同步完整的隐私状态
|
|
22
|
+
* 推荐业务层只调用这个方法
|
|
23
|
+
*/
|
|
24
|
+
setPrivacyConfig(config: PrivacyConfig): void;
|
|
25
|
+
getPrivacyStatus(): PrivacyStatus;
|
|
26
|
+
setLoadWorldVectorMap(enabled: boolean): void;
|
|
27
|
+
getVersion(): string;
|
|
28
|
+
start(): void;
|
|
29
|
+
stop(): void;
|
|
30
|
+
isStarted(): Promise<boolean>;
|
|
31
|
+
getCurrentLocation(): Promise<Coordinates | ReGeocode>;
|
|
32
|
+
coordinateConvert(coordinate: LatLngPoint, type: CoordinateType): Promise<LatLng>;
|
|
33
|
+
setLocatingWithReGeocode(isReGeocode: boolean): void;
|
|
34
|
+
readonly isBackgroundLocationEnabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 检查位置权限状态
|
|
37
|
+
*/
|
|
38
|
+
checkLocationPermission(): Promise<PermissionStatus>;
|
|
39
|
+
/**
|
|
40
|
+
* 请求前台位置权限(增强版)
|
|
41
|
+
*/
|
|
42
|
+
requestLocationPermission(): Promise<PermissionStatus>;
|
|
43
|
+
/**
|
|
44
|
+
* 请求后台位置权限
|
|
45
|
+
* 注意:必须在前台权限已授予后才能请求
|
|
46
|
+
*/
|
|
47
|
+
requestBackgroundLocationPermission(): Promise<PermissionStatus>;
|
|
48
|
+
/**
|
|
49
|
+
* 打开应用设置页面
|
|
50
|
+
* 引导用户手动授予权限
|
|
51
|
+
*/
|
|
52
|
+
openAppSettings(): void;
|
|
53
|
+
setAllowsBackgroundLocationUpdates(allows: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* 添加定位监听器(便捷方法)
|
|
56
|
+
* 自动订阅 onLocationUpdate 事件,提供容错处理
|
|
57
|
+
* @param listener 定位回调函数
|
|
58
|
+
* @returns 订阅对象,调用 remove() 取消监听
|
|
59
|
+
* 注意:如果使用 Config Plugin 配置了 API Key,无需调用 initSDK()
|
|
60
|
+
*/
|
|
61
|
+
addLocationListener(listener: LocationListener): {
|
|
62
|
+
remove: () => void;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 计算两个坐标点之间的距离
|
|
66
|
+
* @param coordinate1 第一个坐标点
|
|
67
|
+
* @param coordinate2 第二个坐标点
|
|
68
|
+
* @returns 两点之间的距离(单位:米)
|
|
69
|
+
*/
|
|
70
|
+
distanceBetweenCoordinates(coordinate1: LatLngPoint, coordinate2: LatLngPoint): number;
|
|
71
|
+
/**
|
|
72
|
+
* 根据多个坐标点计算可同时可见的推荐缩放级别
|
|
73
|
+
* @param points 坐标点集合(至少 1 个)
|
|
74
|
+
* @param options 视口与缩放边界选项
|
|
75
|
+
* @returns 推荐 zoom
|
|
76
|
+
*/
|
|
77
|
+
calculateFitZoom(points: LatLngPoint[], options?: {
|
|
78
|
+
viewportWidthPx?: number;
|
|
79
|
+
viewportHeightPx?: number;
|
|
80
|
+
paddingPx?: number;
|
|
81
|
+
minZoom?: number;
|
|
82
|
+
maxZoom?: number;
|
|
83
|
+
}): number;
|
|
84
|
+
/**
|
|
85
|
+
* 判断点是否在圆内
|
|
86
|
+
* @param point 要判断的点
|
|
87
|
+
* @param center 圆心坐标
|
|
88
|
+
* @param radius 圆半径(单位:米)
|
|
89
|
+
* @returns 是否在圆内
|
|
90
|
+
*/
|
|
91
|
+
isPointInCircle(point: LatLngPoint, center: LatLngPoint, radius: number): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* 判断点是否在多边形内
|
|
94
|
+
* @param point 要判断的点
|
|
95
|
+
* @param polygon 多边形的顶点坐标数组,支持嵌套数组(多边形空洞)
|
|
96
|
+
* @returns 是否在多边形内
|
|
97
|
+
*/
|
|
98
|
+
isPointInPolygon(point: LatLngPoint, polygon: LatLngPoint[] | LatLngPoint[][]): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* 计算多边形面积
|
|
101
|
+
* @param polygon 多边形的顶点坐标数组,支持嵌套数组(多边形空洞)
|
|
102
|
+
* @returns 面积(单位:平方米)
|
|
103
|
+
*/
|
|
104
|
+
calculatePolygonArea(polygon: LatLngPoint[] | LatLngPoint[][]): number;
|
|
105
|
+
/**
|
|
106
|
+
* 计算矩形面积
|
|
107
|
+
* @param southWest 西南角坐标
|
|
108
|
+
* @param northEast 东北角坐标
|
|
109
|
+
* @returns 面积(单位:平方米)
|
|
110
|
+
*/
|
|
111
|
+
calculateRectangleArea(southWest: LatLngPoint, northEast: LatLngPoint): number;
|
|
112
|
+
/**
|
|
113
|
+
* 获取路径上距离目标点最近的点
|
|
114
|
+
* @param path 路径点集合
|
|
115
|
+
* @param target 目标点
|
|
116
|
+
* @returns 最近点信息,包含坐标、索引和距离
|
|
117
|
+
*/
|
|
118
|
+
getNearestPointOnPath(path: LatLngPoint[], target: LatLngPoint): {
|
|
119
|
+
latitude: number;
|
|
120
|
+
longitude: number;
|
|
121
|
+
index: number;
|
|
122
|
+
distanceMeters: number;
|
|
123
|
+
} | null;
|
|
124
|
+
/**
|
|
125
|
+
* 计算多边形质心
|
|
126
|
+
* @param polygon 多边形顶点坐标数组
|
|
127
|
+
* @returns 质心坐标
|
|
128
|
+
*/
|
|
129
|
+
calculateCentroid(polygon: LatLngPoint[]): LatLng | null;
|
|
130
|
+
/**
|
|
131
|
+
* 计算路径边界和中心点
|
|
132
|
+
* @param points 路径点集合
|
|
133
|
+
* @returns 边界信息,包含 north, south, east, west 和 center
|
|
134
|
+
*/
|
|
135
|
+
calculatePathBounds(points: LatLngPoint[]): {
|
|
136
|
+
north: number;
|
|
137
|
+
south: number;
|
|
138
|
+
east: number;
|
|
139
|
+
west: number;
|
|
140
|
+
center: LatLngPoint;
|
|
141
|
+
} | null;
|
|
142
|
+
/**
|
|
143
|
+
* GeoHash 编码
|
|
144
|
+
* @param coordinate 坐标点
|
|
145
|
+
* @param precision 精度 (1-12)
|
|
146
|
+
* @returns GeoHash 字符串
|
|
147
|
+
*/
|
|
148
|
+
encodeGeoHash(coordinate: LatLngPoint, precision: number): string;
|
|
149
|
+
/**
|
|
150
|
+
* 轨迹抽稀 (RDP 算法)
|
|
151
|
+
* @param points 原始轨迹点
|
|
152
|
+
* @param tolerance 允许误差(米)
|
|
153
|
+
* @returns 简化后的轨迹点
|
|
154
|
+
*/
|
|
155
|
+
simplifyPolyline(points: LatLngPoint[], tolerance: number): LatLng[];
|
|
156
|
+
/**
|
|
157
|
+
* 计算路径总长度
|
|
158
|
+
* @param points 路径点
|
|
159
|
+
* @returns 长度(米)
|
|
160
|
+
*/
|
|
161
|
+
calculatePathLength(points: LatLngPoint[]): number;
|
|
162
|
+
/**
|
|
163
|
+
* 解析高德地图 API 返回的 Polyline 字符串
|
|
164
|
+
* 格式: "lng,lat;lng,lat;..."
|
|
165
|
+
* @param polylineStr 高德原始 polyline 字符串,或包含 polyline 属性的对象
|
|
166
|
+
* @returns 解析后的点集
|
|
167
|
+
*/
|
|
168
|
+
parsePolyline(polylineStr: string | {
|
|
169
|
+
polyline: string;
|
|
170
|
+
}): LatLng[];
|
|
171
|
+
/**
|
|
172
|
+
* 获取路径上指定距离的点
|
|
173
|
+
* @param points 路径点
|
|
174
|
+
* @param distance 距离起点的米数
|
|
175
|
+
* @returns 点信息(坐标+角度)
|
|
176
|
+
*/
|
|
177
|
+
getPointAtDistance(points: LatLngPoint[], distance: number): {
|
|
178
|
+
latitude: number;
|
|
179
|
+
longitude: number;
|
|
180
|
+
angle: number;
|
|
181
|
+
} | null;
|
|
182
|
+
/**
|
|
183
|
+
* 经纬度转换为地图瓦片坐标
|
|
184
|
+
* @param coordinate 经纬度点
|
|
185
|
+
* @param zoom 缩放级别
|
|
186
|
+
* @returns 瓦片坐标(x, y, z)
|
|
187
|
+
*/
|
|
188
|
+
latLngToTile(coordinate: LatLngPoint, zoom: number): {
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
z: number;
|
|
192
|
+
} | null;
|
|
193
|
+
/**
|
|
194
|
+
* 地图瓦片坐标转换为经纬度
|
|
195
|
+
* @param tile 瓦片坐标(x, y, z)
|
|
196
|
+
* @returns 经纬度点
|
|
197
|
+
*/
|
|
198
|
+
tileToLatLng(tile: {
|
|
199
|
+
x: number;
|
|
200
|
+
y: number;
|
|
201
|
+
z: number;
|
|
202
|
+
}): LatLng | null;
|
|
203
|
+
/**
|
|
204
|
+
* 经纬度转换为地图像素坐标
|
|
205
|
+
* @param coordinate 经纬度点
|
|
206
|
+
* @param zoom 缩放级别
|
|
207
|
+
* @returns 像素坐标(x, y)
|
|
208
|
+
*/
|
|
209
|
+
latLngToPixel(coordinate: LatLngPoint, zoom: number): {
|
|
210
|
+
x: number;
|
|
211
|
+
y: number;
|
|
212
|
+
} | null;
|
|
213
|
+
/**
|
|
214
|
+
* 地图像素坐标转换为经纬度
|
|
215
|
+
* @param pixel 像素坐标(x, y)
|
|
216
|
+
* @param zoom 缩放级别
|
|
217
|
+
* @returns 经纬度点
|
|
218
|
+
*/
|
|
219
|
+
pixelToLatLng(pixel: {
|
|
220
|
+
x: number;
|
|
221
|
+
y: number;
|
|
222
|
+
}, zoom: number): LatLng | null;
|
|
223
|
+
/**
|
|
224
|
+
* 批量地理围栏检测
|
|
225
|
+
* @param point 待检查的点
|
|
226
|
+
* @param polygons 多边形数组,格式为 LatLngPoint[][] 或 LatLngPoint[][][]
|
|
227
|
+
* @returns 包含点索引的数组(-1 表示不在任何多边形内)
|
|
228
|
+
*/
|
|
229
|
+
findPointInPolygons(point: LatLngPoint, polygons: LatLngPoint[][] | LatLngPoint[][][]): number;
|
|
230
|
+
/**
|
|
231
|
+
* 生成网格聚合数据 (常用于展示网格聚合图或大规模点数据处理)
|
|
232
|
+
* @param points 包含经纬度和权重的点数组
|
|
233
|
+
* @param gridSizeMeters 网格大小(米)
|
|
234
|
+
* @returns 包含经纬度和强度的网格点数组
|
|
235
|
+
*/
|
|
236
|
+
generateHeatmapGrid(points: Array<LatLngPoint & {
|
|
237
|
+
weight?: number;
|
|
238
|
+
}>, gridSizeMeters: number): Array<{
|
|
239
|
+
latitude: number;
|
|
240
|
+
longitude: number;
|
|
241
|
+
intensity: number;
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* 获取最近一次 initSDK 的配置
|
|
246
|
+
*/
|
|
247
|
+
export declare function getSDKConfig(): SDKConfig | null;
|
|
248
|
+
type HiddenNativeMethodName = 'setPrivacyShow' | 'setPrivacyAgree';
|
|
249
|
+
export type ExpoGaodeMapModule = Omit<NativeExpoGaodeMapModule, keyof typeof helperMethods | HiddenNativeMethodName> & typeof helperMethods;
|
|
250
|
+
declare const ExpoGaodeMapModuleWithHelpers: ExpoGaodeMapModule;
|
|
251
|
+
/**
|
|
252
|
+
* 获取用于 Web API 的 webKey(若未初始化或未提供则返回 undefined)
|
|
253
|
+
*/
|
|
254
|
+
export declare function getWebKey(): string | undefined;
|
|
255
|
+
export default ExpoGaodeMapModuleWithHelpers;
|
|
256
|
+
//# sourceMappingURL=ExpoGaodeMapModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoGaodeMapModule.d.ts","sourceRoot":"","sources":["../../../src/map/ExpoGaodeMapModule.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAmGjG,QAAA,MAAM,aAAa;IAEjB;;;OAGG;oBACa,SAAS,GAAG,IAAI;wBAgCZ,OAAO;IAI3B;;;OAGG;+BACwB,MAAM,GAAG,IAAI;IAMxC;;OAEG;2BACoB,IAAI;IAM3B;;;OAGG;6BACsB,aAAa,GAAG,IAAI;wBAMzB,aAAa;mCAgBF,OAAO,GAAG,IAAI;kBAU/B,MAAM;aAWX,IAAI;YAWL,IAAI;iBAWC,OAAO,CAAC,OAAO,CAAC;0BAYD,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;kCAaxB,WAAW,QAAQ,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;0CAajD,OAAO,GAAG,IAAI;0CAWjB,OAAO;IAM1C;;OAEG;+BAC8B,OAAO,CAAC,gBAAgB,CAAC;IAa1D;;OAEG;iCACgC,OAAO,CAAC,gBAAgB,CAAC;IAiB5D;;;OAGG;2CAC0C,OAAO,CAAC,gBAAgB,CAAC;IAiBt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