setUserTrackingMode method
- BMFUserTrackingMode userTrackingMode,
- {bool enableDirection: true,
- String customMarker}
设定定位模式
BMFUserTrackingMode
userTrackingMode 定位模式
enableDirection 是否允许显示方向信息 (Android 独有)
customMarker 设置用户自定义定位图标,可以为 null (Android 独有)
bool 成功返回true 失败false
Implementation
Future<bool> setUserTrackingMode(BMFUserTrackingMode userTrackingMode,
{bool enableDirection = true, String customMarker}) async {
return await BMFMapDispatcherFactory.instance.mapUserLocationDispatcher
.setUserTrackingMode(_mapChannel, userTrackingMode, enableDirection,
customMarker: customMarker);
}