setUserTrackingMode method

Future<bool> setUserTrackingMode (
  1. BMFUserTrackingMode userTrackingMode,
  2. {bool enableDirection: true,
  3. String customMarker}
)

设定定位模式

BMFUserTrackingModeuserTrackingMode 定位模式

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);
}