showScaleControl method

Future showScaleControl(
  1. bool enable
)

显示比例尺控件

Implementation

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

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