showZoomControl method

Future<void> showZoomControl(
  1. bool enable
)

显示缩放控件

Implementation

Future<void> showZoomControl(bool enable) async {
  await 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端不支持显示缩放控件');
    },
  );
}