setMinZoomPreference method

Future<void> setMinZoomPreference(
  1. double minZoomPreference
)

Sets a preferred lower bound for the camera zoom.

When the minimum zoom changes, the SDK adjusts all later camera updates to respect that minimum if possible. Note that there are technical considerations that may prevent the SDK from allowing users to zoom too low.

Throws MinZoomRangeException if minZoomPreference is greater than maximum zoom lavel.

Implementation

Future<void> setMinZoomPreference(double minZoomPreference) {
  return GoogleMapsNavigationPlatform.instance.viewAPI.setMinZoomPreference(
      viewId: _viewId, minZoomPreference: minZoomPreference);
}