setMaxZoomPreference method
Sets a preferred upper bound for the camera zoom.
When the maximum zoom changes, the SDK adjusts all later camera updates to respect that maximum if possible. Note that there are technical considerations that may prevent the SDK from allowing users to zoom too deep into the map. For example, satellite or terrain may have a lower maximum zoom than the base map tiles.
Throws MaxZoomRangeException if maxZoomPreference is
less than minimum zoom lavel.
Implementation
Future<void> setMaxZoomPreference(double maxZoomPreference) {
return GoogleMapsNavigationPlatform.instance.setMaxZoomPreference(
viewId: _viewId, maxZoomPreference: maxZoomPreference);
}