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.
Files changed (261) hide show
  1. package/android/build.gradle +4 -25
  2. package/build/ExpoGaodeMapNaviView.js +2 -1
  3. package/build/ExpoGaodeMapNaviView.js.map +1 -1
  4. package/build/ExpoGaodeMapNavigationModule.d.ts +1 -1
  5. package/build/ExpoGaodeMapNavigationModule.d.ts.map +1 -1
  6. package/build/ExpoGaodeMapNavigationModule.js.map +1 -1
  7. package/build/map/ExpoGaodeMapModule.d.ts +3 -2
  8. package/build/map/ExpoGaodeMapModule.d.ts.map +1 -1
  9. package/build/map/ExpoGaodeMapModule.js +3 -1
  10. package/build/map/ExpoGaodeMapModule.js.map +1 -1
  11. package/build/map/ExpoGaodeMapOfflineModule.js +1 -1
  12. package/build/map/ExpoGaodeMapOfflineModule.js.map +1 -1
  13. package/build/map/ExpoGaodeMapView.js +2 -8
  14. package/build/map/ExpoGaodeMapView.js.map +1 -1
  15. package/build/map/components/FoldableMapView.d.ts +3 -2
  16. package/build/map/components/FoldableMapView.d.ts.map +1 -1
  17. package/build/map/components/FoldableMapView.js +2 -1
  18. package/build/map/components/FoldableMapView.js.map +1 -1
  19. package/build/map/components/MapUI.js +2 -1
  20. package/build/map/components/MapUI.js.map +1 -1
  21. package/build/map/components/overlays/Circle.d.ts +1 -1
  22. package/build/map/components/overlays/Circle.d.ts.map +1 -1
  23. package/build/map/components/overlays/Circle.js +2 -1
  24. package/build/map/components/overlays/Circle.js.map +1 -1
  25. package/build/map/components/overlays/Cluster.d.ts +1 -1
  26. package/build/map/components/overlays/Cluster.d.ts.map +1 -1
  27. package/build/map/components/overlays/Cluster.js +2 -1
  28. package/build/map/components/overlays/Cluster.js.map +1 -1
  29. package/build/map/components/overlays/HeatMap.d.ts +1 -1
  30. package/build/map/components/overlays/HeatMap.d.ts.map +1 -1
  31. package/build/map/components/overlays/HeatMap.js +2 -1
  32. package/build/map/components/overlays/HeatMap.js.map +1 -1
  33. package/build/map/components/overlays/Marker.d.ts +1 -1
  34. package/build/map/components/overlays/Marker.d.ts.map +1 -1
  35. package/build/map/components/overlays/Marker.js +2 -5
  36. package/build/map/components/overlays/Marker.js.map +1 -1
  37. package/build/map/components/overlays/MultiPoint.d.ts +1 -2
  38. package/build/map/components/overlays/MultiPoint.d.ts.map +1 -1
  39. package/build/map/components/overlays/MultiPoint.js +2 -1
  40. package/build/map/components/overlays/MultiPoint.js.map +1 -1
  41. package/build/map/components/overlays/Polygon.d.ts +1 -1
  42. package/build/map/components/overlays/Polygon.d.ts.map +1 -1
  43. package/build/map/components/overlays/Polygon.js +2 -1
  44. package/build/map/components/overlays/Polygon.js.map +1 -1
  45. package/build/map/components/overlays/Polyline.d.ts +1 -1
  46. package/build/map/components/overlays/Polyline.d.ts.map +1 -1
  47. package/build/map/components/overlays/Polyline.js +2 -1
  48. package/build/map/components/overlays/Polyline.js.map +1 -1
  49. package/build/map/search/ExpoGaodeMapSearchModule.d.ts +1 -1
  50. package/build/map/search/ExpoGaodeMapSearchModule.d.ts.map +1 -1
  51. package/build/map/search/ExpoGaodeMapSearchModule.js.map +1 -1
  52. package/build/map/types/common.types.d.ts +1 -1
  53. package/build/map/types/common.types.d.ts.map +1 -1
  54. package/build/map/types/common.types.js.map +1 -1
  55. package/build/map/types/map-view.types.d.ts +2 -2
  56. package/build/map/types/map-view.types.d.ts.map +1 -1
  57. package/build/map/types/map-view.types.js.map +1 -1
  58. package/build/map/utils/GeoUtils.d.ts +1 -1
  59. package/build/map/utils/GeoUtils.d.ts.map +1 -1
  60. package/build/map/utils/GeoUtils.js +2 -2
  61. package/build/map/utils/GeoUtils.js.map +1 -1
  62. package/build/route-geometry.d.ts.map +1 -1
  63. package/build/route-geometry.js +24 -8
  64. package/build/route-geometry.js.map +1 -1
  65. package/build/src/ExpoGaodeMapNaviView.d.ts +67 -0
  66. package/build/src/ExpoGaodeMapNaviView.d.ts.map +1 -0
  67. package/build/src/ExpoGaodeMapNaviView.js +138 -0
  68. package/build/src/ExpoGaodeMapNaviView.js.map +1 -0
  69. package/build/src/ExpoGaodeMapNavigation.types.d.ts +2 -0
  70. package/build/src/ExpoGaodeMapNavigation.types.d.ts.map +1 -0
  71. package/build/src/ExpoGaodeMapNavigation.types.js +3 -0
  72. package/build/src/ExpoGaodeMapNavigation.types.js.map +1 -0
  73. package/build/src/ExpoGaodeMapNavigationModule.d.ts +4 -0
  74. package/build/src/ExpoGaodeMapNavigationModule.d.ts.map +1 -0
  75. package/build/src/ExpoGaodeMapNavigationModule.js +27 -0
  76. package/build/src/ExpoGaodeMapNavigationModule.js.map +1 -0
  77. package/build/src/index.d.ts +47 -0
  78. package/build/src/index.d.ts.map +1 -0
  79. package/build/src/index.js +48 -0
  80. package/build/src/index.js.map +1 -0
  81. package/build/src/map/ExpoGaodeMapModule.d.ts +256 -0
  82. package/build/src/map/ExpoGaodeMapModule.d.ts.map +1 -0
  83. package/build/src/map/ExpoGaodeMapModule.js +813 -0
  84. package/build/src/map/ExpoGaodeMapModule.js.map +1 -0
  85. package/build/src/map/ExpoGaodeMapOfflineModule.d.ts +145 -0
  86. package/build/src/map/ExpoGaodeMapOfflineModule.d.ts.map +1 -0
  87. package/build/src/map/ExpoGaodeMapOfflineModule.js +24 -0
  88. package/build/src/map/ExpoGaodeMapOfflineModule.js.map +1 -0
  89. package/build/src/map/ExpoGaodeMapView.d.ts +23 -0
  90. package/build/src/map/ExpoGaodeMapView.d.ts.map +1 -0
  91. package/build/src/map/ExpoGaodeMapView.js +173 -0
  92. package/build/src/map/ExpoGaodeMapView.js.map +1 -0
  93. package/build/src/map/components/FoldableMapView.d.ts +39 -0
  94. package/build/src/map/components/FoldableMapView.d.ts.map +1 -0
  95. package/build/src/map/components/FoldableMapView.js +171 -0
  96. package/build/src/map/components/FoldableMapView.js.map +1 -0
  97. package/build/src/map/components/MapContext.d.ts +13 -0
  98. package/build/src/map/components/MapContext.d.ts.map +1 -0
  99. package/build/src/map/components/MapContext.js +18 -0
  100. package/build/src/map/components/MapContext.js.map +1 -0
  101. package/build/src/map/components/MapUI.d.ts +19 -0
  102. package/build/src/map/components/MapUI.d.ts.map +1 -0
  103. package/build/src/map/components/MapUI.js +24 -0
  104. package/build/src/map/components/MapUI.js.map +1 -0
  105. package/build/src/map/components/overlays/Circle.d.ts +13 -0
  106. package/build/src/map/components/overlays/Circle.d.ts.map +1 -0
  107. package/build/src/map/components/overlays/Circle.js +20 -0
  108. package/build/src/map/components/overlays/Circle.js.map +1 -0
  109. package/build/src/map/components/overlays/Cluster.d.ts +12 -0
  110. package/build/src/map/components/overlays/Cluster.d.ts.map +1 -0
  111. package/build/src/map/components/overlays/Cluster.js +16 -0
  112. package/build/src/map/components/overlays/Cluster.js.map +1 -0
  113. package/build/src/map/components/overlays/HeatMap.d.ts +12 -0
  114. package/build/src/map/components/overlays/HeatMap.d.ts.map +1 -0
  115. package/build/src/map/components/overlays/HeatMap.js +46 -0
  116. package/build/src/map/components/overlays/HeatMap.js.map +1 -0
  117. package/build/src/map/components/overlays/Marker.d.ts +16 -0
  118. package/build/src/map/components/overlays/Marker.d.ts.map +1 -0
  119. package/build/src/map/components/overlays/Marker.js +125 -0
  120. package/build/src/map/components/overlays/Marker.js.map +1 -0
  121. package/build/src/map/components/overlays/MultiPoint.d.ts +9 -0
  122. package/build/src/map/components/overlays/MultiPoint.d.ts.map +1 -0
  123. package/build/src/map/components/overlays/MultiPoint.js +15 -0
  124. package/build/src/map/components/overlays/MultiPoint.js.map +1 -0
  125. package/build/src/map/components/overlays/Polygon.d.ts +12 -0
  126. package/build/src/map/components/overlays/Polygon.d.ts.map +1 -0
  127. package/build/src/map/components/overlays/Polygon.js +20 -0
  128. package/build/src/map/components/overlays/Polygon.js.map +1 -0
  129. package/build/src/map/components/overlays/Polyline.d.ts +12 -0
  130. package/build/src/map/components/overlays/Polyline.d.ts.map +1 -0
  131. package/build/src/map/components/overlays/Polyline.js +20 -0
  132. package/build/src/map/components/overlays/Polyline.js.map +1 -0
  133. package/build/src/map/components/overlays/index.d.ts +8 -0
  134. package/build/src/map/components/overlays/index.d.ts.map +1 -0
  135. package/build/src/map/components/overlays/index.js +8 -0
  136. package/build/src/map/components/overlays/index.js.map +1 -0
  137. package/build/src/map/index.d.ts +35 -0
  138. package/build/src/map/index.d.ts.map +1 -0
  139. package/build/src/map/index.js +48 -0
  140. package/build/src/map/index.js.map +1 -0
  141. package/build/src/map/search/ExpoGaodeMapSearch.types.d.ts +340 -0
  142. package/build/src/map/search/ExpoGaodeMapSearch.types.d.ts.map +1 -0
  143. package/build/src/map/search/ExpoGaodeMapSearch.types.js +19 -0
  144. package/build/src/map/search/ExpoGaodeMapSearch.types.js.map +1 -0
  145. package/build/src/map/search/ExpoGaodeMapSearchModule.d.ts +74 -0
  146. package/build/src/map/search/ExpoGaodeMapSearchModule.d.ts.map +1 -0
  147. package/build/src/map/search/ExpoGaodeMapSearchModule.js +48 -0
  148. package/build/src/map/search/ExpoGaodeMapSearchModule.js.map +1 -0
  149. package/build/src/map/search/index.d.ts +156 -0
  150. package/build/src/map/search/index.d.ts.map +1 -0
  151. package/build/src/map/search/index.js +171 -0
  152. package/build/src/map/search/index.js.map +1 -0
  153. package/build/src/map/types/common.types.d.ts +199 -0
  154. package/build/src/map/types/common.types.d.ts.map +1 -0
  155. package/build/src/map/types/common.types.js +33 -0
  156. package/build/src/map/types/common.types.js.map +1 -0
  157. package/build/src/map/types/index.d.ts +13 -0
  158. package/build/src/map/types/index.d.ts.map +1 -0
  159. package/build/src/map/types/index.js +7 -0
  160. package/build/src/map/types/index.js.map +1 -0
  161. package/build/src/map/types/location.types.d.ts +358 -0
  162. package/build/src/map/types/location.types.d.ts.map +1 -0
  163. package/build/src/map/types/location.types.js +93 -0
  164. package/build/src/map/types/location.types.js.map +1 -0
  165. package/build/src/map/types/map-view.types.d.ts +340 -0
  166. package/build/src/map/types/map-view.types.d.ts.map +1 -0
  167. package/build/src/map/types/map-view.types.js +6 -0
  168. package/build/src/map/types/map-view.types.js.map +1 -0
  169. package/build/src/map/types/native-module.types.d.ts +395 -0
  170. package/build/src/map/types/native-module.types.d.ts.map +1 -0
  171. package/build/src/map/types/native-module.types.js +5 -0
  172. package/build/src/map/types/native-module.types.js.map +1 -0
  173. package/build/src/map/types/offline.types.d.ts +133 -0
  174. package/build/src/map/types/offline.types.d.ts.map +1 -0
  175. package/build/src/map/types/offline.types.js +5 -0
  176. package/build/src/map/types/offline.types.js.map +1 -0
  177. package/build/src/map/types/overlays.types.d.ts +456 -0
  178. package/build/src/map/types/overlays.types.d.ts.map +1 -0
  179. package/build/src/map/types/overlays.types.js +6 -0
  180. package/build/src/map/types/overlays.types.js.map +1 -0
  181. package/build/src/map/types/route-playback.types.d.ts +28 -0
  182. package/build/src/map/types/route-playback.types.d.ts.map +1 -0
  183. package/build/src/map/types/route-playback.types.js +2 -0
  184. package/build/src/map/types/route-playback.types.js.map +1 -0
  185. package/build/src/map/utils/ErrorHandler.d.ts +121 -0
  186. package/build/src/map/utils/ErrorHandler.d.ts.map +1 -0
  187. package/build/src/map/utils/ErrorHandler.js +470 -0
  188. package/build/src/map/utils/ErrorHandler.js.map +1 -0
  189. package/build/src/map/utils/GeoUtils.d.ts +21 -0
  190. package/build/src/map/utils/GeoUtils.d.ts.map +1 -0
  191. package/build/src/map/utils/GeoUtils.js +78 -0
  192. package/build/src/map/utils/GeoUtils.js.map +1 -0
  193. package/build/src/map/utils/OfflineMapManager.d.ts +153 -0
  194. package/build/src/map/utils/OfflineMapManager.d.ts.map +1 -0
  195. package/build/src/map/utils/OfflineMapManager.js +217 -0
  196. package/build/src/map/utils/OfflineMapManager.js.map +1 -0
  197. package/build/src/map/utils/PermissionUtils.d.ts +92 -0
  198. package/build/src/map/utils/PermissionUtils.d.ts.map +1 -0
  199. package/build/src/map/utils/PermissionUtils.js +252 -0
  200. package/build/src/map/utils/PermissionUtils.js.map +1 -0
  201. package/build/src/map/utils/PlatformDetector.d.ts +103 -0
  202. package/build/src/map/utils/PlatformDetector.d.ts.map +1 -0
  203. package/build/src/map/utils/PlatformDetector.js +178 -0
  204. package/build/src/map/utils/PlatformDetector.js.map +1 -0
  205. package/build/src/map/utils/lazyNativeViewManager.d.ts +3 -0
  206. package/build/src/map/utils/lazyNativeViewManager.d.ts.map +1 -0
  207. package/build/src/map/utils/lazyNativeViewManager.js +11 -0
  208. package/build/src/map/utils/lazyNativeViewManager.js.map +1 -0
  209. package/build/src/route-geometry.d.ts +13 -0
  210. package/build/src/route-geometry.d.ts.map +1 -0
  211. package/build/src/route-geometry.js +154 -0
  212. package/build/src/route-geometry.js.map +1 -0
  213. package/build/src/route-planning.d.ts +21 -0
  214. package/build/src/route-planning.d.ts.map +1 -0
  215. package/build/src/route-planning.js +67 -0
  216. package/build/src/route-planning.js.map +1 -0
  217. package/build/src/types/coordinates.types.d.ts +25 -0
  218. package/build/src/types/coordinates.types.d.ts.map +1 -0
  219. package/build/src/types/coordinates.types.js +6 -0
  220. package/build/src/types/coordinates.types.js.map +1 -0
  221. package/build/src/types/independent.types.d.ts +385 -0
  222. package/build/src/types/independent.types.d.ts.map +1 -0
  223. package/build/src/types/independent.types.js +2 -0
  224. package/build/src/types/independent.types.js.map +1 -0
  225. package/build/src/types/index.d.ts +6 -0
  226. package/build/src/types/index.d.ts.map +1 -0
  227. package/build/src/types/index.js +7 -0
  228. package/build/src/types/index.js.map +1 -0
  229. package/build/src/types/native-module.types.d.ts +74 -0
  230. package/build/src/types/native-module.types.d.ts.map +1 -0
  231. package/build/src/types/native-module.types.js +3 -0
  232. package/build/src/types/native-module.types.js.map +1 -0
  233. package/build/src/types/naviview.types.d.ts +562 -0
  234. package/build/src/types/naviview.types.d.ts.map +1 -0
  235. package/build/src/types/naviview.types.js +2 -0
  236. package/build/src/types/naviview.types.js.map +1 -0
  237. package/build/src/types/route.types.d.ts +414 -0
  238. package/build/src/types/route.types.d.ts.map +1 -0
  239. package/build/src/types/route.types.js +137 -0
  240. package/build/src/types/route.types.js.map +1 -0
  241. package/build/src/web-api-fallback.d.ts +5 -0
  242. package/build/src/web-api-fallback.d.ts.map +1 -0
  243. package/build/src/web-api-fallback.js +160 -0
  244. package/build/src/web-api-fallback.js.map +1 -0
  245. package/build/src/web-route-following.d.ts +3 -0
  246. package/build/src/web-route-following.d.ts.map +1 -0
  247. package/build/src/web-route-following.js +178 -0
  248. package/build/src/web-route-following.js.map +1 -0
  249. package/build/types/native-module.types.d.ts +2 -2
  250. package/build/types/native-module.types.d.ts.map +1 -1
  251. package/build/types/native-module.types.js.map +1 -1
  252. package/build/types/naviview.types.d.ts +1 -1
  253. package/build/types/naviview.types.d.ts.map +1 -1
  254. package/build/types/naviview.types.js.map +1 -1
  255. package/build/web-api-fallback.d.ts.map +1 -1
  256. package/build/web-api-fallback.js +0 -1
  257. package/build/web-api-fallback.js.map +1 -1
  258. package/ios/map/ExpoGaodeMapView.swift +145 -3
  259. package/ios/map/managers/UIManager.swift +3 -0
  260. package/package.json +10 -7
  261. package/plugin/build/withGaodeMap.js +19 -14
@@ -0,0 +1,562 @@
1
+ import { ViewProps, NativeSyntheticEvent, ImageSourcePropType } from "react-native";
2
+ export type NaviColorValue = string | number;
3
+ export type NaviImageSource = string | ImageSourcePropType;
4
+ export type NaviMapViewModeType = 0 | 1 | 2 | 3;
5
+ export interface NaviRect {
6
+ x?: number;
7
+ y?: number;
8
+ width?: number;
9
+ height?: number;
10
+ }
11
+ export interface NaviTrafficBarColors {
12
+ unknown?: NaviColorValue;
13
+ smooth?: NaviColorValue;
14
+ fineOpen?: NaviColorValue;
15
+ slow?: NaviColorValue;
16
+ jam?: NaviColorValue;
17
+ seriousJam?: NaviColorValue;
18
+ defaultRoad?: NaviColorValue;
19
+ }
20
+ export interface NaviInfoUpdateEvent {
21
+ naviMode?: number;
22
+ pathRetainDistance: number;
23
+ pathRetainTime: number;
24
+ curStepRetainDistance?: number;
25
+ curStepRetainTime?: number;
26
+ currentRoadName: string;
27
+ nextRoadName: string;
28
+ currentSpeed?: number;
29
+ iconType?: number;
30
+ nextIconType?: number;
31
+ /** 当前导航动作的原生转向图标 URI,优先级高于 iconType */
32
+ turnIconImage?: string;
33
+ /** 下一导航动作的原生转向图标 URI;当前主要由 iOS 驾车场景提供,Android 与 iOS 骑步行场景通常为空 */
34
+ nextTurnIconImage?: string;
35
+ iconDirection?: number;
36
+ currentSegmentIndex?: number;
37
+ currentLinkIndex?: number;
38
+ currentPointIndex?: number;
39
+ routeRemainTrafficLightCount?: number;
40
+ driveDistance?: number;
41
+ driveTime?: number;
42
+ }
43
+ export interface NaviVisualStateEvent {
44
+ /** 是否正在显示实景路口放大图 */
45
+ isCrossVisible: boolean;
46
+ /** 是否正在显示 3D 路口模型;当前仅 Android 支持,iOS 恒为 false */
47
+ isModeCrossVisible: boolean;
48
+ isLaneInfoVisible: boolean;
49
+ }
50
+ export interface NaviLaneInfoEvent {
51
+ laneCount: number;
52
+ backgroundLane: number[];
53
+ frontLane: number[];
54
+ }
55
+ /** 导航路线的连续路况分段,供统一自绘光柱消费 */
56
+ export interface NaviTrafficStatusItem {
57
+ /** 路况状态值,跨平台统一对齐高德原始 status 枚举 */
58
+ status: number;
59
+ /** 该路况分段长度,单位米 */
60
+ length: number;
61
+ /** iOS 细粒度路况值;Android 当前无此字段 */
62
+ fineStatus?: number;
63
+ }
64
+ /** 当前整条引导路线的路况快照 */
65
+ export interface NaviTrafficStatusesEvent {
66
+ /** 当前整条路线长度,单位米 */
67
+ totalLength?: number;
68
+ /** 当前剩余距离,单位米 */
69
+ retainDistance?: number;
70
+ /** 当前路线的连续路况分段数组 */
71
+ items: NaviTrafficStatusItem[];
72
+ }
73
+ export interface NaviStartEvent {
74
+ type?: number;
75
+ loaded?: boolean;
76
+ }
77
+ export interface NaviEndEvent {
78
+ reason: string;
79
+ }
80
+ export interface NaviArriveEvent {
81
+ arrived: boolean;
82
+ }
83
+ export interface CalculateRouteSuccessEvent {
84
+ routeIds?: number[];
85
+ success?: boolean;
86
+ }
87
+ export interface CalculateRouteFailureEvent {
88
+ error?: string;
89
+ errorCode?: number;
90
+ }
91
+ export interface ReCalculateEvent {
92
+ reason: string;
93
+ }
94
+ export interface PlayVoiceEvent {
95
+ text: string;
96
+ type?: number;
97
+ }
98
+ export interface GpsSignalWeakEvent {
99
+ isWeak: boolean;
100
+ }
101
+ export interface NaviEdgePadding {
102
+ top?: number;
103
+ left?: number;
104
+ bottom?: number;
105
+ right?: number;
106
+ }
107
+ export interface NaviAnchorPoint {
108
+ x?: number;
109
+ y?: number;
110
+ }
111
+ export interface NaviImageSize {
112
+ width?: number;
113
+ height?: number;
114
+ }
115
+ export interface NaviCustomWaypointMarker {
116
+ latitude: number;
117
+ longitude: number;
118
+ /** 气泡文案;iOS 当前仅驾车场景支持真正的自定义气泡视图,骑步行场景会回退为 SDK 默认途经点表现 */
119
+ title?: string;
120
+ }
121
+ export interface RouteRecalculateEvent {
122
+ reason: string;
123
+ }
124
+ /**
125
+ * 导航视图属性
126
+ */
127
+ export interface ExpoGaodeMapNaviViewProps extends ViewProps {
128
+ /**
129
+ * 导航类型
130
+ * - 0: GPS 导航
131
+ * - 1: 模拟导航
132
+ */
133
+ naviType?: number;
134
+ /**
135
+ * 是否启用语音播报
136
+ * @default true
137
+ */
138
+ enableVoice?: boolean;
139
+ /**
140
+ * 是否显示摄像头
141
+ * @default true
142
+ */
143
+ showCamera?: boolean;
144
+ /**
145
+ * 是否自动锁车(非锁车模式7秒后自动切换为锁车模式)
146
+ * @default true
147
+ */
148
+ autoLockCar?: boolean;
149
+ /**
150
+ * 是否开启自动缩放(锁车模式下自动缩放地图以预见下一导航动作)
151
+ * @default true
152
+ */
153
+ autoChangeZoom?: boolean;
154
+ /**
155
+ * 是否显示实时交通路况线
156
+ * 说明:Android 对应 `isTrafficLine`,iOS 对应 `mapShowTraffic`
157
+ * @default true
158
+ */
159
+ trafficLayerEnabled?: boolean;
160
+ /**
161
+ * 是否显示路口放大图
162
+ * @default true
163
+ */
164
+ realCrossDisplay?: boolean;
165
+ /**
166
+ * 导航视角模式
167
+ * - 0: 车头朝上 (carNorth)
168
+ * - 1: 正北朝上 (mapNorth)
169
+ * @default 0
170
+ */
171
+ naviMode?: number;
172
+ /**
173
+ * 导航显示模式
174
+ * - 1: 锁车态 (carPositionLocked) - 自车图标锁定在屏幕固定位置
175
+ * - 2: 全览态 (overview) - 整条路线显示在可见区域内
176
+ * - 3: 普通态 (normal) - 地图不动,自车图标移动
177
+ * @default 1
178
+ */
179
+ showMode?: number;
180
+ /**
181
+ * 是否开启夜间模式
182
+ * @deprecated 建议改用 `mapViewModeType`,跨平台表达力更完整
183
+ * 说明:Android 映射 `setNaviNight`(并关闭 `setAutoNaviViewNightMode`),
184
+ * iOS 映射 `mapViewModeType = Night/Day`;若同时传 `mapViewModeType`,以后者为准
185
+ * @default false
186
+ */
187
+ isNightMode?: boolean;
188
+ /**
189
+ * 是否显示自车和罗盘
190
+ * @platform android
191
+ * @default true
192
+ * @since 6.2.0
193
+ */
194
+ carOverlayVisible?: boolean;
195
+ /**
196
+ * 自定义导航车标图片
197
+ * @platform android ios
198
+ * 说明:iOS 对应 `setCarImage`,Android 对应 `AMapNaviViewOptions.setCarBitmap`
199
+ */
200
+ carImage?: NaviImageSource;
201
+ /**
202
+ * 自定义导航车标尺寸
203
+ * @platform android ios
204
+ * 说明:单位为 RN 逻辑像素(dp/pt),需同时传 `width` 与 `height` 才会生效
205
+ */
206
+ carImageSize?: NaviImageSize;
207
+ /**
208
+ * 自定义车标四角朝向图
209
+ * @platform android
210
+ * 说明:对应 `AMapNaviViewOptions.setFourCornersBitmap`
211
+ */
212
+ fourCornersImage?: NaviImageSource;
213
+ /**
214
+ * 自定义自车罗盘图
215
+ * @platform ios
216
+ * 说明:对应 `setCarCompassImage`
217
+ */
218
+ carCompassImage?: NaviImageSource;
219
+ /**
220
+ * 自定义起点标注图片
221
+ * @platform android ios
222
+ * 说明:iOS 对应 `setStartPointImage`,Android 对应 `setStartPointBitmap`
223
+ */
224
+ startPointImage?: NaviImageSource;
225
+ /**
226
+ * 自定义途经点标注图片
227
+ * @platform android ios
228
+ * 说明:iOS 对应 `setWayPointImage`,Android 对应 `setWayPointBitmap`
229
+ */
230
+ wayPointImage?: NaviImageSource;
231
+ /**
232
+ * 导航态自定义途经点气泡
233
+ * @platform android ios
234
+ * 说明:会额外挂载在导航地图上,而不是替换 SDK 默认途经点 icon。
235
+ * Android 当前可用于驾车/骑行/步行;iOS 当前仅驾车场景支持真正的自定义气泡,骑步行场景会忽略该气泡并保留默认途经点表现。
236
+ */
237
+ customWaypointMarkers?: NaviCustomWaypointMarker[];
238
+ /**
239
+ * 自定义终点标注图片
240
+ * @platform android ios
241
+ * 说明:iOS 对应 `setEndPointImage`,Android 对应 `setEndPointBitmap`
242
+ */
243
+ endPointImage?: NaviImageSource;
244
+ /**
245
+ * 自定义摄像头图标
246
+ * @platform ios
247
+ * 说明:对应 `setCameraImage`
248
+ */
249
+ cameraImage?: NaviImageSource;
250
+ /**
251
+ * 路线标记点可见性配置
252
+ * @platform android
253
+ * @since 9.0.0
254
+ */
255
+ routeMarkerVisible?: {
256
+ /** 是否显示起终途点 @default true */
257
+ showStartEndVia?: boolean;
258
+ /** 是否显示步行轮渡扎点 @default true */
259
+ showFootFerry?: boolean;
260
+ /** 是否显示禁行限行封路icon @default true */
261
+ showForbidden?: boolean;
262
+ /** 是否显示路线起点icon @default true @since 9.0.0 */
263
+ showRouteStartIcon?: boolean;
264
+ /** 是否显示路线终点icon @default true @since 9.0.0 */
265
+ showRouteEndIcon?: boolean;
266
+ };
267
+ /**
268
+ * 是否显示路线转向箭头
269
+ * @platform android
270
+ * @default true
271
+ * @since 6.3.0
272
+ */
273
+ naviArrowVisible?: boolean;
274
+ /**
275
+ * 是否显示车道信息
276
+ * @platform android
277
+ * @default true
278
+ */
279
+ laneInfoVisible?: boolean;
280
+ /**
281
+ * 是否显示 3D 路口模型
282
+ * @platform android
283
+ * 说明:当前仅 Android 高德导航 SDK 提供该能力,iOS 会忽略此参数
284
+ * @default true
285
+ */
286
+ modeCrossDisplay?: boolean;
287
+ /**
288
+ * 是否显示鹰眼路口图
289
+ * @platform android
290
+ * @default true
291
+ */
292
+ eyrieCrossDisplay?: boolean;
293
+ /**
294
+ * 是否显示辅助操作区域
295
+ * @platform android
296
+ * @default true
297
+ */
298
+ secondActionVisible?: boolean;
299
+ /**
300
+ * 是否显示备用路线覆盖物
301
+ * @platform android
302
+ * @default true
303
+ */
304
+ backupOverlayVisible?: boolean;
305
+ /**
306
+ * 是否显示拥堵气泡
307
+ * 说明:当前主要用于驾车导航场景
308
+ * @default true
309
+ * @since Android 10.0.5 / iOS 10.0.900
310
+ */
311
+ showDriveCongestion?: boolean;
312
+ /**
313
+ * 是否显示红绿灯倒计时气泡
314
+ * 说明:当前主要用于驾车导航场景
315
+ * @default true
316
+ * 提示:iOS 需开通红绿灯倒计时服务
317
+ * @since Android 10.0.5 / iOS 10.0.900
318
+ */
319
+ showTrafficLightView?: boolean;
320
+ /**
321
+ * 导航界面顶部与状态栏的间距(单位:dp)
322
+ * @platform android
323
+ * 说明:当显示官方原生顶部信息区且未显式传值时,封装会自动补系统状态栏高度;
324
+ * 若你需要关闭这层自动补偿,可显式传 `0`
325
+ */
326
+ androidStatusBarPaddingTop?: number;
327
+ /**
328
+ * 是否启用导航状态栏
329
+ * @platform android
330
+ * 说明:使用高德官方导航状态栏,而不是封装层手动偏移顶部 UI
331
+ */
332
+ naviStatusBarEnabled?: boolean;
333
+ /**
334
+ * 锁车态缩放级别
335
+ * @platform android
336
+ * @default 18
337
+ */
338
+ lockZoom?: number;
339
+ /**
340
+ * 锁车态倾斜角度
341
+ * @platform android
342
+ * @default 35
343
+ */
344
+ lockTilt?: number;
345
+ /**
346
+ * 是否显示鹰眼小地图
347
+ * @platform android
348
+ * @default false
349
+ */
350
+ eagleMapVisible?: boolean;
351
+ /**
352
+ * Android 锁车态自车锚点位置
353
+ * @platform android
354
+ * 说明:取值范围 `(0,1]`,传 `0` 时回退 SDK 默认值
355
+ */
356
+ pointToCenter?: NaviAnchorPoint;
357
+ /**
358
+ * 是否隐藏 Android 原生顶部导航信息卡片
359
+ * @platform android
360
+ * 说明:用于只保留地图/车道/路口图,自行绘制顶部 HUD
361
+ * @default false
362
+ */
363
+ hideNativeTopInfoLayout?: boolean;
364
+ /**
365
+ * 是否在 Android 应用进入后台后显示导航常驻通知
366
+ * @platform android
367
+ * 说明:默认关闭;开启后会在后台通过前台服务持续更新导航进度通知。
368
+ * Android 13+ 下封装会自动检查并请求 `POST_NOTIFICATIONS`,避免业务侧遗漏运行时权限申请。
369
+ * @default false
370
+ */
371
+ androidBackgroundNavigationNotificationEnabled?: boolean;
372
+ /**
373
+ * 是否启用 iOS 导航 Live Activity(锁屏/灵动岛)
374
+ * @platform ios
375
+ * 说明:开启后会在导航信息更新时自动请求/更新 Live Activity;需同时在 Info.plist 开启 `NSSupportsLiveActivities`
376
+ * 说明:驾车场景可直接使用 SDK 回调的转向图;骑步行场景当前回退为根据 `iconType` 生成的图标,不保证能拿到与驾车完全一致的原生素材
377
+ * @default false
378
+ */
379
+ iosLiveActivityEnabled?: boolean;
380
+ /**
381
+ * 是否隐藏 iOS 原生车道信息条
382
+ * @platform ios
383
+ * 说明:用于保留官方地图/路况等元素,但把车道信息交给 RN 自绘 HUD 统一展示
384
+ * @default false
385
+ */
386
+ hideNativeLaneInfoLayout?: boolean;
387
+ /**
388
+ * 是否显示路线
389
+ * @platform ios
390
+ * @default true
391
+ */
392
+ showRoute?: boolean;
393
+ /**
394
+ * 是否显示路况光柱
395
+ * @default true
396
+ */
397
+ showTrafficBar?: boolean;
398
+ /**
399
+ * 路况光柱图位置
400
+ * @platform ios
401
+ * 说明:基于 `AMapNaviDriveView.tmcRouteFrame`,单位为 pt
402
+ */
403
+ trafficBarFrame?: NaviRect;
404
+ /**
405
+ * 路况光柱图颜色
406
+ * @platform ios
407
+ * 说明:基于 `AMapNaviDriveView.tmcRouteColor`,可分别配置不同路况颜色
408
+ */
409
+ trafficBarColors?: NaviTrafficBarColors;
410
+ /**
411
+ * 是否显示全览按钮
412
+ *
413
+ * @default true
414
+ */
415
+ showBrowseRouteButton?: boolean;
416
+ /**
417
+ * 是否显示更多按钮
418
+ * @platform ios
419
+ * @default true
420
+ */
421
+ showMoreButton?: boolean;
422
+ /**
423
+ * 是否显示实时交通按钮
424
+ * 说明:Android 对应交通图层开关按钮,iOS 对应官方交通按钮
425
+ *
426
+ * @default true
427
+ */
428
+ showTrafficButton?: boolean;
429
+ /**
430
+ * 是否显示界面元素(设为false可完全自定义界面)
431
+ * 说明:Android / iOS 均已实现;iOS 会在导航视图就绪后应用
432
+ * @default true
433
+ */
434
+ showUIElements?: boolean;
435
+ /**
436
+ * 走过的路线是否置灰
437
+ *
438
+ * @default false
439
+ */
440
+ showGreyAfterPass?: boolean;
441
+ /**
442
+ * 是否显示牵引线(起点到终点的飞线)
443
+ *
444
+ * @default true
445
+ */
446
+ showVectorline?: boolean;
447
+ /**
448
+ * 设置是否为骑步行视图
449
+ * @platform android
450
+ * 说明:对应高德 Android 文档里的 `setIsNaviTravelView(true)` 兼容开关;驾车传 `false`,骑行/步行传 `true`
451
+ * @default false
452
+ */
453
+ isNaviTravelView?: boolean;
454
+ /**
455
+ * 是否显示指南针
456
+ * 说明:Android 默认显示;iOS 仅在显式传值时覆盖官方默认行为
457
+ */
458
+ showCompassEnabled?: boolean;
459
+ /**
460
+ * 是否显示红绿灯图标
461
+ * @default true
462
+ */
463
+ showTrafficLights?: boolean;
464
+ /**
465
+ * 地图样式类型
466
+ * - 0: 白天模式 (day)
467
+ * - 1: 黑夜模式 (night)
468
+ * - 2: 根据日出日落自动切换 (dayNightAuto)
469
+ * - 3: 自定义地图样式 (custom)
470
+ * 说明:Android 对应 `setNaviNight` / `setAutoNaviViewNightMode`;当前 Android 的 `3`(custom)需要额外样式路径支持,未配置时会降级为 day
471
+ * @default 0
472
+ */
473
+ mapViewModeType?: NaviMapViewModeType;
474
+ /**
475
+ * 路线polyline的宽度,设置0恢复默认宽度
476
+ * @platform ios
477
+ */
478
+ lineWidth?: number;
479
+ /**
480
+ * iOS 导航内容边距
481
+ * @platform ios
482
+ * 说明:用于调整导航 HUD 和地图可视区域的边距
483
+ */
484
+ driveViewEdgePadding?: NaviEdgePadding;
485
+ /**
486
+ * iOS 地图视图锚点
487
+ * @platform ios
488
+ * 说明:取值范围 `[0,1]`;仅在 `showUIElements=false` 时生效
489
+ */
490
+ screenAnchor?: NaviAnchorPoint;
491
+ /**
492
+ * 是否显示备选路线
493
+ * @platform ios
494
+ * @default true
495
+ */
496
+ showBackupRoute?: boolean;
497
+ /**
498
+ * 是否显示鹰眼小地图
499
+ * @platform ios
500
+ */
501
+ showEagleMap?: boolean;
502
+ /**
503
+ * 导航信息更新回调
504
+ */
505
+ onNaviInfoUpdate?: (event: NativeSyntheticEvent<NaviInfoUpdateEvent>) => void;
506
+ /**
507
+ * 导航开始回调
508
+ */
509
+ onNaviStart?: (event: NativeSyntheticEvent<NaviStartEvent>) => void;
510
+ /**
511
+ * 导航结束回调
512
+ */
513
+ onNaviEnd?: (event: NativeSyntheticEvent<NaviEndEvent>) => void;
514
+ /**
515
+ * 到达目的地回调
516
+ */
517
+ onArrive?: (event: NativeSyntheticEvent<NaviArriveEvent>) => void;
518
+ /**
519
+ * 路径规划成功回调
520
+ */
521
+ onCalculateRouteSuccess?: (event: NativeSyntheticEvent<CalculateRouteSuccessEvent>) => void;
522
+ /**
523
+ * 路径规划失败回调
524
+ */
525
+ onCalculateRouteFailure?: (event: NativeSyntheticEvent<CalculateRouteFailureEvent>) => void;
526
+ /**
527
+ * 重新规划路径回调
528
+ */
529
+ onReCalculate?: (event: NativeSyntheticEvent<ReCalculateEvent>) => void;
530
+ /**
531
+ * 语音播报回调
532
+ */
533
+ onPlayVoice?: (event: NativeSyntheticEvent<PlayVoiceEvent>) => void;
534
+ /**
535
+ * GPS信号弱回调
536
+ */
537
+ onGpsSignalWeak?: (event: NativeSyntheticEvent<GpsSignalWeakEvent>) => void;
538
+ /**
539
+ * 路线重算回调
540
+ */
541
+ onRouteRecalculate?: (event: NativeSyntheticEvent<RouteRecalculateEvent>) => void;
542
+ /**
543
+ * 导航视觉状态回调
544
+ * 说明:用于感知路口大图 / 3D 路口 / 车道线显示状态,便于自绘 HUD 收窄或调整布局
545
+ */
546
+ onNaviVisualStateChange?: (event: NativeSyntheticEvent<NaviVisualStateEvent>) => void;
547
+ /**
548
+ * 车道信息更新回调
549
+ * @platform android ios
550
+ * 说明:用于自绘车道条。Android 直接对齐高德 `AMapLaneInfo` 核心字段;
551
+ * iOS 则将 `showLaneBackInfo/laneSelectInfo` 解析为同结构数据。
552
+ */
553
+ onLaneInfoUpdate?: (event: NativeSyntheticEvent<NaviLaneInfoEvent>) => void;
554
+ /**
555
+ * 路况光柱分段数据更新回调
556
+ * @platform android ios
557
+ * 说明:用于自绘路况光柱。Android 基于 `getTrafficStatuses(0, 0)`,
558
+ * iOS 基于 `updateTrafficStatus` 回调,对齐为统一结构。
559
+ */
560
+ onTrafficStatusesUpdate?: (event: NativeSyntheticEvent<NaviTrafficStatusesEvent>) => void;
561
+ }
562
+ //# sourceMappingURL=naviview.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naviview.types.d.ts","sourceRoot":"","sources":["../../../src/types/naviview.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEpF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,mBAAmB,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhD,MAAM,WAAW,QAAQ;IACvB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAA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AE,oBAAoB,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IAElF;;;OAGG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IAEtF;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE5E;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;CAC3F"}
@@ -0,0 +1,2 @@
1
+ import { ViewProps, NativeSyntheticEvent, ImageSourcePropType } from "react-native";
2
+ //# sourceMappingURL=naviview.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naviview.types.js","sourceRoot":"","sources":["../../../src/types/naviview.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC","sourcesContent":["import { ViewProps, NativeSyntheticEvent, ImageSourcePropType } from \"react-native\";\n\nexport type NaviColorValue = string | number;\nexport type NaviImageSource = string | ImageSourcePropType;\nexport type NaviMapViewModeType = 0 | 1 | 2 | 3;\n\nexport interface NaviRect {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n}\n\nexport interface NaviTrafficBarColors {\n unknown?: NaviColorValue;\n smooth?: NaviColorValue;\n fineOpen?: NaviColorValue;\n slow?: NaviColorValue;\n jam?: NaviColorValue;\n seriousJam?: NaviColorValue;\n defaultRoad?: NaviColorValue;\n}\n\n// 导航信息更新事件\nexport interface NaviInfoUpdateEvent {\n naviMode?: number;\n pathRetainDistance: number;\n pathRetainTime: number;\n curStepRetainDistance?: number;\n curStepRetainTime?: number;\n currentRoadName: string;\n nextRoadName: string;\n currentSpeed?: number;\n iconType?: number;\n nextIconType?: number;\n /** 当前导航动作的原生转向图标 URI,优先级高于 iconType */\n turnIconImage?: string;\n /** 下一导航动作的原生转向图标 URI;当前主要由 iOS 驾车场景提供,Android 与 iOS 骑步行场景通常为空 */\n nextTurnIconImage?: string;\n iconDirection?: number;\n currentSegmentIndex?: number;\n currentLinkIndex?: number;\n currentPointIndex?: number;\n routeRemainTrafficLightCount?: number;\n driveDistance?: number;\n driveTime?: number;\n}\n\nexport interface NaviVisualStateEvent {\n /** 是否正在显示实景路口放大图 */\n isCrossVisible: boolean;\n /** 是否正在显示 3D 路口模型;当前仅 Android 支持,iOS 恒为 false */\n isModeCrossVisible: boolean;\n isLaneInfoVisible: boolean;\n}\n\nexport interface NaviLaneInfoEvent {\n laneCount: number;\n backgroundLane: number[];\n frontLane: number[];\n}\n\n/** 导航路线的连续路况分段,供统一自绘光柱消费 */\nexport interface NaviTrafficStatusItem {\n /** 路况状态值,跨平台统一对齐高德原始 status 枚举 */\n status: number;\n /** 该路况分段长度,单位米 */\n length: number;\n /** iOS 细粒度路况值;Android 当前无此字段 */\n fineStatus?: number;\n}\n\n/** 当前整条引导路线的路况快照 */\nexport interface NaviTrafficStatusesEvent {\n /** 当前整条路线长度,单位米 */\n totalLength?: number;\n /** 当前剩余距离,单位米 */\n retainDistance?: number;\n /** 当前路线的连续路况分段数组 */\n items: NaviTrafficStatusItem[];\n}\n\n// 导航开始事件\nexport interface NaviStartEvent {\n type?: number;\n loaded?: boolean;\n}\n\n// 导航结束事件\nexport interface NaviEndEvent {\n reason: string;\n}\n\n// 到达目的地事件\nexport interface NaviArriveEvent {\n arrived: boolean;\n}\n\n// 路径规划成功事件\nexport interface CalculateRouteSuccessEvent {\n routeIds?: number[];\n success?: boolean;\n}\n\n// 路径规划失败事件\nexport interface CalculateRouteFailureEvent {\n error?: string;\n errorCode?: number;\n}\n\n// 重新规划路径事件\nexport interface ReCalculateEvent {\n reason: string;\n}\n\n// 语音播报事件\nexport interface PlayVoiceEvent {\n text: string;\n type?: number;\n}\n\n// GPS信号弱事件\nexport interface GpsSignalWeakEvent {\n isWeak: boolean;\n}\n\nexport interface NaviEdgePadding {\n top?: number;\n left?: number;\n bottom?: number;\n right?: number;\n}\n\nexport interface NaviAnchorPoint {\n x?: number;\n y?: number;\n}\n\nexport interface NaviImageSize {\n width?: number;\n height?: number;\n}\n\nexport interface NaviCustomWaypointMarker {\n latitude: number;\n longitude: number;\n /** 气泡文案;iOS 当前仅驾车场景支持真正的自定义气泡视图,骑步行场景会回退为 SDK 默认途经点表现 */\n title?: string;\n}\n\n// 路线重算事件\nexport interface RouteRecalculateEvent {\n reason: string;\n}\n\n/**\n * 导航视图属性\n */\nexport interface ExpoGaodeMapNaviViewProps extends ViewProps {\n /**\n * 导航类型\n * - 0: GPS 导航\n * - 1: 模拟导航\n */\n naviType?: number;\n \n /**\n * 是否启用语音播报\n * @default true\n */\n enableVoice?: boolean;\n \n /**\n * 是否显示摄像头\n * @default true\n */\n showCamera?: boolean;\n \n /**\n * 是否自动锁车(非锁车模式7秒后自动切换为锁车模式)\n * @default true\n */\n autoLockCar?: boolean;\n \n /**\n * 是否开启自动缩放(锁车模式下自动缩放地图以预见下一导航动作)\n * @default true\n */\n autoChangeZoom?: boolean;\n \n /**\n * 是否显示实时交通路况线\n * 说明:Android 对应 `isTrafficLine`,iOS 对应 `mapShowTraffic`\n * @default true\n */\n trafficLayerEnabled?: boolean;\n \n /**\n * 是否显示路口放大图\n * @default true\n */\n realCrossDisplay?: boolean;\n \n /**\n * 导航视角模式\n * - 0: 车头朝上 (carNorth)\n * - 1: 正北朝上 (mapNorth)\n * @default 0\n */\n naviMode?: number;\n \n /**\n * 导航显示模式\n * - 1: 锁车态 (carPositionLocked) - 自车图标锁定在屏幕固定位置\n * - 2: 全览态 (overview) - 整条路线显示在可见区域内\n * - 3: 普通态 (normal) - 地图不动,自车图标移动\n * @default 1\n */\n showMode?: number;\n \n /**\n * 是否开启夜间模式\n * @deprecated 建议改用 `mapViewModeType`,跨平台表达力更完整\n * 说明:Android 映射 `setNaviNight`(并关闭 `setAutoNaviViewNightMode`),\n * iOS 映射 `mapViewModeType = Night/Day`;若同时传 `mapViewModeType`,以后者为准\n * @default false\n */\n isNightMode?: boolean;\n \n /**\n * 是否显示自车和罗盘\n * @platform android\n * @default true\n * @since 6.2.0\n */\n carOverlayVisible?: boolean;\n\n /**\n * 自定义导航车标图片\n * @platform android ios\n * 说明:iOS 对应 `setCarImage`,Android 对应 `AMapNaviViewOptions.setCarBitmap`\n */\n carImage?: NaviImageSource;\n\n /**\n * 自定义导航车标尺寸\n * @platform android ios\n * 说明:单位为 RN 逻辑像素(dp/pt),需同时传 `width` 与 `height` 才会生效\n */\n carImageSize?: NaviImageSize;\n\n /**\n * 自定义车标四角朝向图\n * @platform android\n * 说明:对应 `AMapNaviViewOptions.setFourCornersBitmap`\n */\n fourCornersImage?: NaviImageSource;\n\n /**\n * 自定义自车罗盘图\n * @platform ios\n * 说明:对应 `setCarCompassImage`\n */\n carCompassImage?: NaviImageSource;\n\n /**\n * 自定义起点标注图片\n * @platform android ios\n * 说明:iOS 对应 `setStartPointImage`,Android 对应 `setStartPointBitmap`\n */\n startPointImage?: NaviImageSource;\n\n /**\n * 自定义途经点标注图片\n * @platform android ios\n * 说明:iOS 对应 `setWayPointImage`,Android 对应 `setWayPointBitmap`\n */\n wayPointImage?: NaviImageSource;\n\n /**\n * 导航态自定义途经点气泡\n * @platform android ios\n * 说明:会额外挂载在导航地图上,而不是替换 SDK 默认途经点 icon。\n * Android 当前可用于驾车/骑行/步行;iOS 当前仅驾车场景支持真正的自定义气泡,骑步行场景会忽略该气泡并保留默认途经点表现。\n */\n customWaypointMarkers?: NaviCustomWaypointMarker[];\n\n /**\n * 自定义终点标注图片\n * @platform android ios\n * 说明:iOS 对应 `setEndPointImage`,Android 对应 `setEndPointBitmap`\n */\n endPointImage?: NaviImageSource;\n\n /**\n * 自定义摄像头图标\n * @platform ios\n * 说明:对应 `setCameraImage`\n */\n cameraImage?: NaviImageSource;\n\n \n /**\n * 路线标记点可见性配置\n * @platform android\n * @since 9.0.0\n */\n routeMarkerVisible?: {\n /** 是否显示起终途点 @default true */\n showStartEndVia?: boolean;\n /** 是否显示步行轮渡扎点 @default true */\n showFootFerry?: boolean;\n /** 是否显示禁行限行封路icon @default true */\n showForbidden?: boolean;\n /** 是否显示路线起点icon @default true @since 9.0.0 */\n showRouteStartIcon?: boolean;\n /** 是否显示路线终点icon @default true @since 9.0.0 */\n showRouteEndIcon?: boolean;\n };\n \n /**\n * 是否显示路线转向箭头\n * @platform android\n * @default true\n * @since 6.3.0\n */\n naviArrowVisible?: boolean;\n\n /**\n * 是否显示车道信息\n * @platform android\n * @default true\n */\n laneInfoVisible?: boolean;\n\n /**\n * 是否显示 3D 路口模型\n * @platform android\n * 说明:当前仅 Android 高德导航 SDK 提供该能力,iOS 会忽略此参数\n * @default true\n */\n modeCrossDisplay?: boolean;\n\n /**\n * 是否显示鹰眼路口图\n * @platform android\n * @default true\n */\n eyrieCrossDisplay?: boolean;\n\n /**\n * 是否显示辅助操作区域\n * @platform android\n * @default true\n */\n secondActionVisible?: boolean;\n\n /**\n * 是否显示备用路线覆盖物\n * @platform android\n * @default true\n */\n backupOverlayVisible?: boolean;\n \n /**\n * 是否显示拥堵气泡\n * 说明:当前主要用于驾车导航场景\n * @default true\n * @since Android 10.0.5 / iOS 10.0.900\n */\n showDriveCongestion?: boolean;\n \n /**\n * 是否显示红绿灯倒计时气泡\n * 说明:当前主要用于驾车导航场景\n * @default true\n * 提示:iOS 需开通红绿灯倒计时服务\n * @since Android 10.0.5 / iOS 10.0.900\n */\n showTrafficLightView?: boolean;\n\n\n /**\n * 导航界面顶部与状态栏的间距(单位:dp)\n * @platform android\n * 说明:当显示官方原生顶部信息区且未显式传值时,封装会自动补系统状态栏高度;\n * 若你需要关闭这层自动补偿,可显式传 `0`\n */\n androidStatusBarPaddingTop?: number;\n\n /**\n * 是否启用导航状态栏\n * @platform android\n * 说明:使用高德官方导航状态栏,而不是封装层手动偏移顶部 UI\n */\n naviStatusBarEnabled?: boolean;\n\n /**\n * 锁车态缩放级别\n * @platform android\n * @default 18\n */\n lockZoom?: number;\n\n /**\n * 锁车态倾斜角度\n * @platform android\n * @default 35\n */\n lockTilt?: number;\n\n /**\n * 是否显示鹰眼小地图\n * @platform android\n * @default false\n */\n eagleMapVisible?: boolean;\n\n /**\n * Android 锁车态自车锚点位置\n * @platform android\n * 说明:取值范围 `(0,1]`,传 `0` 时回退 SDK 默认值\n */\n pointToCenter?: NaviAnchorPoint;\n\n /**\n * 是否隐藏 Android 原生顶部导航信息卡片\n * @platform android\n * 说明:用于只保留地图/车道/路口图,自行绘制顶部 HUD\n * @default false\n */\n hideNativeTopInfoLayout?: boolean;\n\n /**\n * 是否在 Android 应用进入后台后显示导航常驻通知\n * @platform android\n * 说明:默认关闭;开启后会在后台通过前台服务持续更新导航进度通知。\n * Android 13+ 下封装会自动检查并请求 `POST_NOTIFICATIONS`,避免业务侧遗漏运行时权限申请。\n * @default false\n */\n androidBackgroundNavigationNotificationEnabled?: boolean;\n\n /**\n * 是否启用 iOS 导航 Live Activity(锁屏/灵动岛)\n * @platform ios\n * 说明:开启后会在导航信息更新时自动请求/更新 Live Activity;需同时在 Info.plist 开启 `NSSupportsLiveActivities`\n * 说明:驾车场景可直接使用 SDK 回调的转向图;骑步行场景当前回退为根据 `iconType` 生成的图标,不保证能拿到与驾车完全一致的原生素材\n * @default false\n */\n iosLiveActivityEnabled?: boolean;\n\n /**\n * 是否隐藏 iOS 原生车道信息条\n * @platform ios\n * 说明:用于保留官方地图/路况等元素,但把车道信息交给 RN 自绘 HUD 统一展示\n * @default false\n */\n hideNativeLaneInfoLayout?: boolean;\n \n // ========== iOS 特有属性 ==========\n \n /**\n * 是否显示路线\n * @platform ios\n * @default true\n */\n showRoute?: boolean;\n \n\n /**\n * 是否显示路况光柱\n * @default true\n */\n showTrafficBar?: boolean;\n\n /**\n * 路况光柱图位置\n * @platform ios\n * 说明:基于 `AMapNaviDriveView.tmcRouteFrame`,单位为 pt\n */\n trafficBarFrame?: NaviRect;\n\n /**\n * 路况光柱图颜色\n * @platform ios\n * 说明:基于 `AMapNaviDriveView.tmcRouteColor`,可分别配置不同路况颜色\n */\n trafficBarColors?: NaviTrafficBarColors;\n \n /**\n * 是否显示全览按钮\n * \n * @default true\n */\n showBrowseRouteButton?: boolean;\n \n /**\n * 是否显示更多按钮\n * @platform ios\n * @default true\n */\n showMoreButton?: boolean;\n \n /**\n * 是否显示实时交通按钮\n * 说明:Android 对应交通图层开关按钮,iOS 对应官方交通按钮\n *\n * @default true\n */\n showTrafficButton?: boolean;\n \n /**\n * 是否显示界面元素(设为false可完全自定义界面)\n * 说明:Android / iOS 均已实现;iOS 会在导航视图就绪后应用\n * @default true\n */\n showUIElements?: boolean;\n \n /**\n * 走过的路线是否置灰\n * \n * @default false\n */\n showGreyAfterPass?: boolean;\n \n /**\n * 是否显示牵引线(起点到终点的飞线)\n * \n * @default true\n */\n showVectorline?: boolean;\n\n /**\n * 设置是否为骑步行视图\n * @platform android\n * 说明:对应高德 Android 文档里的 `setIsNaviTravelView(true)` 兼容开关;驾车传 `false`,骑行/步行传 `true`\n * @default false\n */\n isNaviTravelView?:boolean\n\n /**\n * 是否显示指南针\n * 说明:Android 默认显示;iOS 仅在显式传值时覆盖官方默认行为\n */\n showCompassEnabled?: boolean;\n \n /**\n * 是否显示红绿灯图标\n * @default true\n */\n showTrafficLights?: boolean;\n \n /**\n * 地图样式类型\n * - 0: 白天模式 (day)\n * - 1: 黑夜模式 (night)\n * - 2: 根据日出日落自动切换 (dayNightAuto)\n * - 3: 自定义地图样式 (custom)\n * 说明:Android 对应 `setNaviNight` / `setAutoNaviViewNightMode`;当前 Android 的 `3`(custom)需要额外样式路径支持,未配置时会降级为 day\n * @default 0\n */\n mapViewModeType?: NaviMapViewModeType;\n \n /**\n * 路线polyline的宽度,设置0恢复默认宽度\n * @platform ios\n */\n lineWidth?: number;\n\n /**\n * iOS 导航内容边距\n * @platform ios\n * 说明:用于调整导航 HUD 和地图可视区域的边距\n */\n driveViewEdgePadding?: NaviEdgePadding;\n\n /**\n * iOS 地图视图锚点\n * @platform ios\n * 说明:取值范围 `[0,1]`;仅在 `showUIElements=false` 时生效\n */\n screenAnchor?: NaviAnchorPoint;\n\n /**\n * 是否显示备选路线\n * @platform ios\n * @default true\n */\n showBackupRoute?: boolean;\n\n /**\n * 是否显示鹰眼小地图\n * @platform ios\n */\n showEagleMap?: boolean;\n \n /**\n * 导航信息更新回调\n */\n onNaviInfoUpdate?: (event: NativeSyntheticEvent<NaviInfoUpdateEvent>) => void;\n \n /**\n * 导航开始回调\n */\n onNaviStart?: (event: NativeSyntheticEvent<NaviStartEvent>) => void;\n \n /**\n * 导航结束回调\n */\n onNaviEnd?: (event: NativeSyntheticEvent<NaviEndEvent>) => void;\n \n /**\n * 到达目的地回调\n */\n onArrive?: (event: NativeSyntheticEvent<NaviArriveEvent>) => void;\n \n /**\n * 路径规划成功回调\n */\n onCalculateRouteSuccess?: (event: NativeSyntheticEvent<CalculateRouteSuccessEvent>) => void;\n \n /**\n * 路径规划失败回调\n */\n onCalculateRouteFailure?: (event: NativeSyntheticEvent<CalculateRouteFailureEvent>) => void;\n \n /**\n * 重新规划路径回调\n */\n onReCalculate?: (event: NativeSyntheticEvent<ReCalculateEvent>) => void;\n \n /**\n * 语音播报回调\n */\n onPlayVoice?: (event: NativeSyntheticEvent<PlayVoiceEvent>) => void;\n \n /**\n * GPS信号弱回调\n */\n onGpsSignalWeak?: (event: NativeSyntheticEvent<GpsSignalWeakEvent>) => void;\n \n /**\n * 路线重算回调\n */\n onRouteRecalculate?: (event: NativeSyntheticEvent<RouteRecalculateEvent>) => void;\n\n /**\n * 导航视觉状态回调\n * 说明:用于感知路口大图 / 3D 路口 / 车道线显示状态,便于自绘 HUD 收窄或调整布局\n */\n onNaviVisualStateChange?: (event: NativeSyntheticEvent<NaviVisualStateEvent>) => void;\n\n /**\n * 车道信息更新回调\n * @platform android ios\n * 说明:用于自绘车道条。Android 直接对齐高德 `AMapLaneInfo` 核心字段;\n * iOS 则将 `showLaneBackInfo/laneSelectInfo` 解析为同结构数据。\n */\n onLaneInfoUpdate?: (event: NativeSyntheticEvent<NaviLaneInfoEvent>) => void;\n\n /**\n * 路况光柱分段数据更新回调\n * @platform android ios\n * 说明:用于自绘路况光柱。Android 基于 `getTrafficStatuses(0, 0)`,\n * iOS 基于 `updateTrafficStatus` 回调,对齐为统一结构。\n */\n onTrafficStatusesUpdate?: (event: NativeSyntheticEvent<NaviTrafficStatusesEvent>) => void;\n}\n"]}