showZoomControl method

Future showZoomControl(
  1. bool enable
)

显示缩放控件

Implementation

Future showZoomControl(bool enable) {
  return platform(
    android: (pool) async {
      final map = await _androidController.getMap();
      final uiSetting = await map.getUiSettings();
      await uiSetting.setZoomControlsEnabled(enable);

      pool..add(map)..add(uiSetting);
    },
    ios: (pool) async {
      print('ios端不支持显示缩放控件');
    },
  );
}