setZoomGesturesEnabled method

Future setZoomGesturesEnabled(
  1. bool enable
)

缩放手势使能

Implementation

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

      pool..add(map)..add(uiSetting);
    },
    ios: (pool) async {
      await _iosController.set_zoomEnabled(enable);
    },
  );
}