updateIcon method

Future<bool> updateIcon (
  1. String icon
)

更新显示的图片

Implementation

Future<bool> updateIcon(String icon) async {
  if (null == icon || icon.isEmpty) {
    return false;
  }

  this.icon = icon;

  return await BMFMapDispatcherFactory.instance
      .getMarkerDispatcher()
      .updateMarkerMember(this.getMethodChannel(), {
    'id': this.getId(),
    'member': 'icon',
    'value': icon,
  });
}