updatePosition method

Future<bool> updatePosition (
  1. BMFCoordinate position
)

更新位置经纬度

Implementation

Future<bool> updatePosition(BMFCoordinate position) async {
  if (null == position) {
    return false;
  }

  bool ret = await BMFMapDispatcherFactory.instance.markerDispatcher
      .updateMarkerMember(this.methodChannel, {
    'id': this.Id,
    'member': 'position',
    'value': position?.toMap(),
  });

  if (ret) {
    this.position = position;
  }

  return ret;
}