setZoom method

Future<void> setZoom({
  1. double? zoomLevel,
  2. double? stepZoom,
})
inherited

Implementation

Future<void> setZoom({double? zoomLevel, double? stepZoom}) async {
  assert(zoomLevel != null || stepZoom != null);
  if (zoomLevel != null) {
    await interop.setZoom(mapIdMixin.toJS, zoomLevel.toJS).toDart;
  } else if (stepZoom != null) {
    await interop.setZoomStep(mapIdMixin.toJS, stepZoom.toJS).toDart;
  }
}