expo-gaode-map-navigation 1.1.0 → 1.1.1
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/build/ExpoGaodeMapNaviView.js +0 -10
- package/build/map/ExpoGaodeMapModule.js +5 -5
- package/build/map/components/overlays/Cluster.js +0 -10
- package/build/map/components/overlays/HeatMap.js +0 -10
- package/build/map/components/overlays/MultiPoint.js +0 -10
- package/build/map/index.d.ts +1 -1
- package/build/map/index.js +3 -1
- package/package.json +15 -6
- package/package.json.backup +0 -47
- package/plugin/README.md +0 -52
- package/plugin/src/withGaodeMap.ts +0 -231
- package/plugin/tsconfig.tsbuildinfo +0 -1
- package/src/ExpoGaodeMapNaviView.tsx +0 -94
- package/src/ExpoGaodeMapNavigation.types.ts +0 -3
- package/src/ExpoGaodeMapNavigationModule.ts +0 -11
- package/src/index.ts +0 -262
- package/src/map/ExpoGaodeMap.types.ts +0 -46
- package/src/map/ExpoGaodeMapModule.ts +0 -315
- package/src/map/ExpoGaodeMapView.tsx +0 -120
- package/src/map/components/overlays/Circle.tsx +0 -20
- package/src/map/components/overlays/Cluster.tsx +0 -26
- package/src/map/components/overlays/HeatMap.tsx +0 -27
- package/src/map/components/overlays/Marker.tsx +0 -88
- package/src/map/components/overlays/MultiPoint.tsx +0 -27
- package/src/map/components/overlays/Polygon.tsx +0 -19
- package/src/map/components/overlays/Polyline.tsx +0 -19
- package/src/map/components/overlays/index.ts +0 -7
- package/src/map/index.ts +0 -37
- package/src/map/types/common.types.ts +0 -126
- package/src/map/types/index.ts +0 -55
- package/src/map/types/location.types.ts +0 -368
- package/src/map/types/map-view.types.ts +0 -281
- package/src/map/types/overlays.types.ts +0 -404
- package/src/map/utils/EventManager.ts +0 -23
- package/src/map/utils/ModuleLoader.ts +0 -115
- package/src/types/coordinates.types.ts +0 -25
- package/src/types/independent.types.ts +0 -288
- package/src/types/index.ts +0 -5
- package/src/types/naviview.types.ts +0 -330
- package/src/types/route.types.ts +0 -305
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import type { RouteResult } from './route.types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 独立路径规划返回结构(不会影响当前导航状态)
|
|
5
|
-
*
|
|
6
|
-
* - routes: 可直接用于路线预览(与普通算路的 RouteResult 结构一致)
|
|
7
|
-
* - mainPathIndex: 主路线索引(调用 startNaviWithPath 前可选路)
|
|
8
|
-
*/
|
|
9
|
-
export interface IndependentRouteResult {
|
|
10
|
-
independent: true;
|
|
11
|
-
token: number;
|
|
12
|
-
count: number;
|
|
13
|
-
mainPathIndex: number;
|
|
14
|
-
routeIds: number[];
|
|
15
|
-
routes: RouteResult[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 独立驾车路径规划参数
|
|
20
|
-
*
|
|
21
|
-
* 说明:
|
|
22
|
-
* - strategy 仍使用 DriveStrategy 即可;也可改用布尔组合标志(下方四个),原生会在未传 strategy 时走 strategyConvert
|
|
23
|
-
* - restriction:是否考虑限行(与 carNumber 搭配)
|
|
24
|
-
*/
|
|
25
|
-
export interface IndependentDriveRouteOptions {
|
|
26
|
-
/** 起点坐标 */
|
|
27
|
-
from: {
|
|
28
|
-
latitude: number;
|
|
29
|
-
longitude: number;
|
|
30
|
-
name?: string;
|
|
31
|
-
poiId?: string;
|
|
32
|
-
};
|
|
33
|
-
/** 终点坐标 */
|
|
34
|
-
to: {
|
|
35
|
-
latitude: number;
|
|
36
|
-
longitude: number;
|
|
37
|
-
name?: string;
|
|
38
|
-
poiId?: string;
|
|
39
|
-
};
|
|
40
|
-
/** 途经点列表 */
|
|
41
|
-
waypoints?: Array<{
|
|
42
|
-
latitude: number;
|
|
43
|
-
longitude: number;
|
|
44
|
-
name?: string;
|
|
45
|
-
poiId?: string;
|
|
46
|
-
}>;
|
|
47
|
-
/** 驾车策略 */
|
|
48
|
-
strategy?: number;
|
|
49
|
-
/** 避免拥堵 */
|
|
50
|
-
avoidCongestion?: boolean;
|
|
51
|
-
/** 避免高速 */
|
|
52
|
-
avoidHighway?: boolean;
|
|
53
|
-
/** 避免收费 */
|
|
54
|
-
avoidCost?: boolean;
|
|
55
|
-
/** 优先高速 */
|
|
56
|
-
prioritiseHighway?: boolean;
|
|
57
|
-
/** 车牌号 */
|
|
58
|
-
carNumber?: string;
|
|
59
|
-
/** 是否考虑限行 */
|
|
60
|
-
restriction?: boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* 独立货车路径规划参数
|
|
65
|
-
*
|
|
66
|
-
* 说明:
|
|
67
|
-
* - 默认 carType=1,支持 carNumber / restriction;可在原生侧扩展轴数/长宽高/载重等
|
|
68
|
-
* - 同样支持布尔组合标志以计算策略
|
|
69
|
-
*/
|
|
70
|
-
export interface IndependentTruckRouteOptions {
|
|
71
|
-
/** 起点坐标 */
|
|
72
|
-
from: {
|
|
73
|
-
latitude: number;
|
|
74
|
-
longitude: number;
|
|
75
|
-
name?: string;
|
|
76
|
-
poiId?: string;
|
|
77
|
-
};
|
|
78
|
-
/** 终点坐标 */
|
|
79
|
-
to: {
|
|
80
|
-
latitude: number;
|
|
81
|
-
longitude: number;
|
|
82
|
-
name?: string;
|
|
83
|
-
poiId?: string;
|
|
84
|
-
};
|
|
85
|
-
/** 途经点列表 */
|
|
86
|
-
waypoints?: Array<{
|
|
87
|
-
latitude: number;
|
|
88
|
-
longitude: number;
|
|
89
|
-
name?: string;
|
|
90
|
-
poiId?: string;
|
|
91
|
-
}>;
|
|
92
|
-
/** 驾车策略 */
|
|
93
|
-
strategy?: number;
|
|
94
|
-
/** 避免拥堵 */
|
|
95
|
-
avoidCongestion?: boolean;
|
|
96
|
-
/** 避免高速 */
|
|
97
|
-
avoidHighway?: boolean;
|
|
98
|
-
/** 避免收费 */
|
|
99
|
-
avoidCost?: boolean;
|
|
100
|
-
/** 优先高速 */
|
|
101
|
-
prioritiseHighway?: boolean;
|
|
102
|
-
/** 车牌号 */
|
|
103
|
-
carNumber?: string;
|
|
104
|
-
/** 是否考虑限行 */
|
|
105
|
-
restriction?: boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* 摩托车路径规划参数
|
|
110
|
-
*
|
|
111
|
-
* 说明:
|
|
112
|
-
* - 与驾车算路一致,但需在原生侧设置 AMapCarInfo.carType=11,并可传 motorcycleCC(排量)
|
|
113
|
-
* - carNumber 可用于限行策略参考
|
|
114
|
-
*/
|
|
115
|
-
export interface MotorcycleRouteOptions {
|
|
116
|
-
/** 起点坐标 */
|
|
117
|
-
from: {
|
|
118
|
-
latitude: number;
|
|
119
|
-
longitude: number;
|
|
120
|
-
};
|
|
121
|
-
/** 终点坐标 */
|
|
122
|
-
to: {
|
|
123
|
-
latitude: number;
|
|
124
|
-
longitude: number;
|
|
125
|
-
};
|
|
126
|
-
/** 途经点列表 */
|
|
127
|
-
waypoints?: Array<{
|
|
128
|
-
latitude: number;
|
|
129
|
-
longitude: number;
|
|
130
|
-
}>;
|
|
131
|
-
/** 驾车策略 */
|
|
132
|
-
strategy?: number;
|
|
133
|
-
/** 避免拥堵 */
|
|
134
|
-
avoidCongestion?: boolean;
|
|
135
|
-
/** 避免高速 */
|
|
136
|
-
avoidHighway?: boolean;
|
|
137
|
-
/** 避免收费 */
|
|
138
|
-
avoidCost?: boolean;
|
|
139
|
-
/** 优先高速 */
|
|
140
|
-
prioritiseHighway?: boolean;
|
|
141
|
-
/** 车牌号(可选) */
|
|
142
|
-
carNumber?: string;
|
|
143
|
-
/** 摩托车排量(单位:cc,可选) */
|
|
144
|
-
motorcycleCC?: number;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* 独立摩托车路径规划参数
|
|
149
|
-
*
|
|
150
|
-
* 说明:
|
|
151
|
-
* - 与独立驾车一致,但需在原生侧设置 carType=11,并可传 motorcycleCC
|
|
152
|
-
*/
|
|
153
|
-
export interface IndependentMotorcycleRouteOptions {
|
|
154
|
-
/** 起点坐标 */
|
|
155
|
-
from: {
|
|
156
|
-
latitude: number;
|
|
157
|
-
longitude: number;
|
|
158
|
-
name?: string;
|
|
159
|
-
poiId?: string;
|
|
160
|
-
};
|
|
161
|
-
/** 终点坐标 */
|
|
162
|
-
to: {
|
|
163
|
-
latitude: number;
|
|
164
|
-
longitude: number;
|
|
165
|
-
name?: string;
|
|
166
|
-
poiId?: string;
|
|
167
|
-
};
|
|
168
|
-
/** 途经点列表 */
|
|
169
|
-
waypoints?: Array<{
|
|
170
|
-
latitude: number;
|
|
171
|
-
longitude: number;
|
|
172
|
-
name?: string;
|
|
173
|
-
poiId?: string;
|
|
174
|
-
}>;
|
|
175
|
-
/** 驾车策略 */
|
|
176
|
-
strategy?: number;
|
|
177
|
-
/** 避免拥堵 */
|
|
178
|
-
avoidCongestion?: boolean;
|
|
179
|
-
/** 避免高速 */
|
|
180
|
-
avoidHighway?: boolean;
|
|
181
|
-
/** 避免收费 */
|
|
182
|
-
avoidCost?: boolean;
|
|
183
|
-
/** 优先高速 */
|
|
184
|
-
prioritiseHighway?: boolean;
|
|
185
|
-
/** 车牌号(可选) */
|
|
186
|
-
carNumber?: string;
|
|
187
|
-
/** 摩托车排量(单位:cc,可选) */
|
|
188
|
-
motorcycleCC?: number;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* 独立步行路径规划参数
|
|
193
|
-
*
|
|
194
|
-
* 说明:
|
|
195
|
-
* - 通过 travelStrategy 指定 SINGLE/MULTIPLE;或使用 multiple=true 开启多路线
|
|
196
|
-
*/
|
|
197
|
-
export interface IndependentWalkRouteOptions {
|
|
198
|
-
/** 起点坐标 */
|
|
199
|
-
from: {
|
|
200
|
-
latitude: number;
|
|
201
|
-
longitude: number;
|
|
202
|
-
name?: string;
|
|
203
|
-
poiId?: string;
|
|
204
|
-
};
|
|
205
|
-
/** 终点坐标 */
|
|
206
|
-
to: {
|
|
207
|
-
latitude: number;
|
|
208
|
-
longitude: number;
|
|
209
|
-
name?: string;
|
|
210
|
-
poiId?: string;
|
|
211
|
-
};
|
|
212
|
-
/** 途经点列表 */
|
|
213
|
-
waypoints?: Array<{
|
|
214
|
-
latitude: number;
|
|
215
|
-
longitude: number;
|
|
216
|
-
name?: string;
|
|
217
|
-
poiId?: string;
|
|
218
|
-
}>;
|
|
219
|
-
/** 出行策略(单路线/多路线),对齐原生 TravelStrategy:1000/1001 */
|
|
220
|
-
travelStrategy?: number;
|
|
221
|
-
/** 是否返回多路线(等价于 travelStrategy=TravelStrategy.MULTIPLE) */
|
|
222
|
-
multiple?: boolean;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* 独立骑行路径规划参数
|
|
227
|
-
*
|
|
228
|
-
* 说明:
|
|
229
|
-
* - 通过 travelStrategy 指定 SINGLE/MULTIPLE;或使用 multiple=true 开启多路线
|
|
230
|
-
*/
|
|
231
|
-
export interface IndependentRideRouteOptions {
|
|
232
|
-
/** 起点坐标 */
|
|
233
|
-
from: {
|
|
234
|
-
latitude: number;
|
|
235
|
-
longitude: number;
|
|
236
|
-
name?: string;
|
|
237
|
-
poiId?: string;
|
|
238
|
-
};
|
|
239
|
-
/** 终点坐标 */
|
|
240
|
-
to: {
|
|
241
|
-
latitude: number;
|
|
242
|
-
longitude: number;
|
|
243
|
-
name?: string;
|
|
244
|
-
poiId?: string;
|
|
245
|
-
};
|
|
246
|
-
/** 途经点列表 */
|
|
247
|
-
waypoints?: Array<{
|
|
248
|
-
latitude: number;
|
|
249
|
-
longitude: number;
|
|
250
|
-
name?: string;
|
|
251
|
-
poiId?: string;
|
|
252
|
-
}>;
|
|
253
|
-
/** 出行策略(单路线/多路线),对齐原生 TravelStrategy:1000/1001 */
|
|
254
|
-
travelStrategy?: number;
|
|
255
|
-
/** 是否返回多路线(等价于 travelStrategy=TravelStrategy.MULTIPLE) */
|
|
256
|
-
multiple?: boolean;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* 选择独立路径组中的主路线参数
|
|
261
|
-
* - token: 独立算路返回的 token
|
|
262
|
-
* - routeId/routeIndex: 选路(优先使用 routeId;未提供则保持当前主路线)
|
|
263
|
-
*/
|
|
264
|
-
export interface SelectIndependentRouteOptions {
|
|
265
|
-
token: number;
|
|
266
|
-
routeId?: number;
|
|
267
|
-
routeIndex?: number;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* 使用独立路径组启动导航参数
|
|
272
|
-
* - token: 独立算路返回的 token
|
|
273
|
-
* - naviType: 0=GPS; 1=EMULATOR(默认 0)
|
|
274
|
-
* - routeId/routeIndex: 启动前可选路
|
|
275
|
-
*/
|
|
276
|
-
export interface StartNaviWithIndependentPathOptions {
|
|
277
|
-
token: number;
|
|
278
|
-
naviType?: number;
|
|
279
|
-
routeId?: number;
|
|
280
|
-
routeIndex?: number;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* 清理独立路径组
|
|
285
|
-
*/
|
|
286
|
-
export interface ClearIndependentRouteOptions {
|
|
287
|
-
token: number;
|
|
288
|
-
}
|
package/src/types/index.ts
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { ViewProps, NativeSyntheticEvent } from "react-native";
|
|
2
|
-
|
|
3
|
-
// 导航信息更新事件
|
|
4
|
-
export interface NaviInfoUpdateEvent {
|
|
5
|
-
pathRetainDistance: number;
|
|
6
|
-
pathRetainTime: number;
|
|
7
|
-
currentRoadName: string;
|
|
8
|
-
nextRoadName: string;
|
|
9
|
-
currentSpeed: number;
|
|
10
|
-
iconType: number;
|
|
11
|
-
iconDirection: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// 导航开始事件
|
|
15
|
-
export interface NaviStartEvent {
|
|
16
|
-
type?: number;
|
|
17
|
-
loaded?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// 导航结束事件
|
|
21
|
-
export interface NaviEndEvent {
|
|
22
|
-
reason: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// 到达目的地事件
|
|
26
|
-
export interface NaviArriveEvent {
|
|
27
|
-
arrived: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// 路径规划成功事件
|
|
31
|
-
export interface CalculateRouteSuccessEvent {
|
|
32
|
-
routeIds?: number[];
|
|
33
|
-
success?: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// 路径规划失败事件
|
|
37
|
-
export interface CalculateRouteFailureEvent {
|
|
38
|
-
error?: string;
|
|
39
|
-
errorCode?: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 重新规划路径事件
|
|
43
|
-
export interface ReCalculateEvent {
|
|
44
|
-
reason: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// 语音播报事件
|
|
48
|
-
export interface PlayVoiceEvent {
|
|
49
|
-
text: string;
|
|
50
|
-
type?: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// GPS信号弱事件
|
|
54
|
-
export interface GpsSignalWeakEvent {
|
|
55
|
-
isWeak: boolean;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// 路线重算事件
|
|
59
|
-
export interface RouteRecalculateEvent {
|
|
60
|
-
reason: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* 导航视图属性
|
|
65
|
-
*/
|
|
66
|
-
export interface NaviViewProps extends ViewProps {
|
|
67
|
-
/**
|
|
68
|
-
* 导航类型
|
|
69
|
-
* - 0: GPS 导航
|
|
70
|
-
* - 1: 模拟导航
|
|
71
|
-
*/
|
|
72
|
-
naviType?: number;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* 是否启用语音播报
|
|
76
|
-
* @default true
|
|
77
|
-
*/
|
|
78
|
-
enableVoice?: boolean;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 是否显示摄像头
|
|
82
|
-
* @default true
|
|
83
|
-
*/
|
|
84
|
-
showCamera?: boolean;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* 是否自动锁车(非锁车模式7秒后自动切换为锁车模式)
|
|
88
|
-
* @default true
|
|
89
|
-
*/
|
|
90
|
-
autoLockCar?: boolean;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* 是否开启自动缩放(锁车模式下自动缩放地图以预见下一导航动作)
|
|
94
|
-
* @default true
|
|
95
|
-
*/
|
|
96
|
-
autoChangeZoom?: boolean;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* 是否显示交通路况
|
|
100
|
-
* @default true
|
|
101
|
-
*/
|
|
102
|
-
trafficLayerEnabled?: boolean;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* 是否显示路口放大图
|
|
106
|
-
* @default true
|
|
107
|
-
*/
|
|
108
|
-
realCrossDisplay?: boolean;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 导航视角模式
|
|
112
|
-
* - 0: 车头朝上 (carNorth)
|
|
113
|
-
* - 1: 正北朝上 (mapNorth)
|
|
114
|
-
* @default 0
|
|
115
|
-
*/
|
|
116
|
-
naviMode?: number;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* 导航显示模式
|
|
120
|
-
* - 1: 锁车态 (carPositionLocked) - 自车图标锁定在屏幕固定位置
|
|
121
|
-
* - 2: 全览态 (overview) - 整条路线显示在可见区域内
|
|
122
|
-
* - 3: 普通态 (normal) - 地图不动,自车图标移动
|
|
123
|
-
* @default 1
|
|
124
|
-
*/
|
|
125
|
-
showMode?: number;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* 是否开启夜间模式
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
isNightMode?: boolean;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* 是否显示自车和罗盘
|
|
135
|
-
* @platform android
|
|
136
|
-
* @default true
|
|
137
|
-
* @since 6.2.0
|
|
138
|
-
*/
|
|
139
|
-
carOverlayVisible?: boolean;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 是否显示交通信号灯
|
|
143
|
-
* @platform android
|
|
144
|
-
* @default true
|
|
145
|
-
* @since 7.4.0
|
|
146
|
-
*/
|
|
147
|
-
trafficLightsVisible?: boolean;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* 路线标记点可见性配置
|
|
151
|
-
* @platform android
|
|
152
|
-
* @since 9.0.0
|
|
153
|
-
*/
|
|
154
|
-
routeMarkerVisible?: {
|
|
155
|
-
/** 是否显示起终途点 @default true */
|
|
156
|
-
showStartEndVia?: boolean;
|
|
157
|
-
/** 是否显示步行轮渡扎点 @default true */
|
|
158
|
-
showFootFerry?: boolean;
|
|
159
|
-
/** 是否显示禁行限行封路icon @default true */
|
|
160
|
-
showForbidden?: boolean;
|
|
161
|
-
/** 是否显示路线起点icon @default true @since 9.0.0 */
|
|
162
|
-
showRouteStartIcon?: boolean;
|
|
163
|
-
/** 是否显示路线终点icon @default true @since 9.0.0 */
|
|
164
|
-
showRouteEndIcon?: boolean;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 是否显示路线转向箭头
|
|
169
|
-
* @platform android
|
|
170
|
-
* @default true
|
|
171
|
-
* @since 6.3.0
|
|
172
|
-
*/
|
|
173
|
-
naviArrowVisible?: boolean;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* 是否显示拥堵气泡
|
|
177
|
-
* @platform android
|
|
178
|
-
* @default true
|
|
179
|
-
* @since 10.0.5
|
|
180
|
-
*/
|
|
181
|
-
showDriveCongestion?: boolean;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* 是否显示红绿灯倒计时气泡
|
|
185
|
-
* @platform android
|
|
186
|
-
* @default true
|
|
187
|
-
* @since 10.0.5
|
|
188
|
-
*/
|
|
189
|
-
showTrafficLightView?: boolean;
|
|
190
|
-
|
|
191
|
-
// ========== iOS 特有属性 ==========
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* 是否显示路线
|
|
195
|
-
* @platform ios
|
|
196
|
-
* @default true
|
|
197
|
-
*/
|
|
198
|
-
showRoute?: boolean;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* 是否显示转向箭头
|
|
202
|
-
* @platform ios
|
|
203
|
-
* @default true
|
|
204
|
-
*/
|
|
205
|
-
showTurnArrow?: boolean;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* 是否显示路况光柱
|
|
209
|
-
* @platform ios
|
|
210
|
-
* @default true
|
|
211
|
-
*/
|
|
212
|
-
showTrafficBar?: boolean;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* 是否显示全览按钮
|
|
216
|
-
* @platform ios
|
|
217
|
-
* @default true
|
|
218
|
-
*/
|
|
219
|
-
showBrowseRouteButton?: boolean;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* 是否显示更多按钮
|
|
223
|
-
* @platform ios
|
|
224
|
-
* @default true
|
|
225
|
-
*/
|
|
226
|
-
showMoreButton?: boolean;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* 是否显示实时交通按钮
|
|
230
|
-
* @platform ios
|
|
231
|
-
* @default true
|
|
232
|
-
*/
|
|
233
|
-
showTrafficButton?: boolean;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* 是否显示界面元素(设为false可完全自定义界面)
|
|
237
|
-
* @platform ios
|
|
238
|
-
* @default true
|
|
239
|
-
*/
|
|
240
|
-
showUIElements?: boolean;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* 走过的路线是否置灰
|
|
244
|
-
* @platform ios
|
|
245
|
-
* @default false
|
|
246
|
-
*/
|
|
247
|
-
showGreyAfterPass?: boolean;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* 是否显示牵引线(起点到终点的飞线)
|
|
251
|
-
* @platform ios
|
|
252
|
-
* @default true
|
|
253
|
-
*/
|
|
254
|
-
showVectorline?: boolean;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* 是否显示红绿灯图标
|
|
258
|
-
* @platform ios
|
|
259
|
-
* @default true
|
|
260
|
-
*/
|
|
261
|
-
showTrafficLights?: boolean;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* 地图样式类型
|
|
265
|
-
* - 0: 白天模式 (day)
|
|
266
|
-
* - 1: 黑夜模式 (night)
|
|
267
|
-
* - 2: 根据日出日落自动切换 (dayNightAuto)
|
|
268
|
-
* - 3: 自定义地图样式 (custom)
|
|
269
|
-
* @platform ios
|
|
270
|
-
* @default 0
|
|
271
|
-
*/
|
|
272
|
-
mapViewModeType?: number;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* 路线polyline的宽度,设置0恢复默认宽度
|
|
276
|
-
* @platform ios
|
|
277
|
-
*/
|
|
278
|
-
lineWidth?: number;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* 导航信息更新回调
|
|
282
|
-
*/
|
|
283
|
-
onNaviInfoUpdate?: (event: NativeSyntheticEvent<NaviInfoUpdateEvent>) => void;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* 导航开始回调
|
|
287
|
-
*/
|
|
288
|
-
onNaviStart?: (event: NativeSyntheticEvent<NaviStartEvent>) => void;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* 导航结束回调
|
|
292
|
-
*/
|
|
293
|
-
onNaviEnd?: (event: NativeSyntheticEvent<NaviEndEvent>) => void;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* 到达目的地回调
|
|
297
|
-
*/
|
|
298
|
-
onArrive?: (event: NativeSyntheticEvent<NaviArriveEvent>) => void;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* 路径规划成功回调
|
|
302
|
-
*/
|
|
303
|
-
onCalculateRouteSuccess?: (event: NativeSyntheticEvent<CalculateRouteSuccessEvent>) => void;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* 路径规划失败回调
|
|
307
|
-
*/
|
|
308
|
-
onCalculateRouteFailure?: (event: NativeSyntheticEvent<CalculateRouteFailureEvent>) => void;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* 重新规划路径回调
|
|
312
|
-
*/
|
|
313
|
-
onReCalculate?: (event: NativeSyntheticEvent<ReCalculateEvent>) => void;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* 语音播报回调
|
|
317
|
-
*/
|
|
318
|
-
onPlayVoice?: (event: NativeSyntheticEvent<PlayVoiceEvent>) => void;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* GPS信号弱回调
|
|
322
|
-
*/
|
|
323
|
-
onGpsSignalWeak?: (event: NativeSyntheticEvent<GpsSignalWeakEvent>) => void;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* 路线重算回调
|
|
327
|
-
*/
|
|
328
|
-
onRouteRecalculate?: (event: NativeSyntheticEvent<RouteRecalculateEvent>) => void;
|
|
329
|
-
}
|
|
330
|
-
|