updateCoordinates method

Future<bool> updateCoordinates (
  1. List<BMFCoordinate> coordinates
)

更新经纬度数组

List<BMFCoordinate> coordinates polygon经纬度数组

Implementation

Future<bool> updateCoordinates(List<BMFCoordinate> coordinates) async {
  if (null == coordinates) {
    return false;
  }

  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updatePolygonMember(this.methodChannel, {
    'id': this.Id,
    'member': 'coordinates',
    'value': coordinates?.map((coordinate) => coordinate?.toMap())?.toList()
  });

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

  return ret;
}