updateDimensions method

Future<bool> updateDimensions (
  1. double width,
  2. double height
)

更新宽、高, Android独有

width ground宽度 height ground高度

Implementation

Future<bool> updateDimensions(double width, double height) async {
  if (width < 0 || height < 0) {
    return false;
  }

  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updateGroundMember(this.methodChannel, {
    'id': this.Id,
    'member': 'dimensions',
    'width': width,
    'height': height,
  });

  if (ret) {
    this.width = width;
    this.height = height;
  }

  return ret;
}