getMaxZoomLevel method

  1. @override
Future<double> getMaxZoomLevel(
  1. int cameraId
)

Gets the maximum supported zoom level for the selected camera.

Implementation

@override
Future<double> getMaxZoomLevel(int cameraId) async {
  try {
    return getCamera(cameraId).getMaxZoomLevel();
  } on html.DomException catch (e) {
    throw PlatformException(code: e.name, message: e.message);
  } on CameraWebException catch (e) {
    _addCameraErrorEvent(e);
    throw PlatformException(code: e.code.toString(), message: e.description);
  }
}