MapZoomPanBehavior constructor

MapZoomPanBehavior({
  1. double zoomLevel = kDefaultMinZoomLevel,
  2. MapLatLng? focalLatLng,
  3. MapLatLngBounds? latLngBounds,
  4. double minZoomLevel = kDefaultMinZoomLevel,
  5. double maxZoomLevel = kDefaultMaxZoomLevel,
  6. bool enablePinching = true,
  7. bool enablePanning = true,
  8. bool enableDoubleTapZooming = false,
  9. bool enableMouseWheelZooming = false,
  10. bool showToolbar = true,
  11. MapToolbarSettings toolbarSettings = const MapToolbarSettings(),
})

Creates a new MapZoomPanBehavior.

Implementation

MapZoomPanBehavior({
  double zoomLevel = kDefaultMinZoomLevel,
  MapLatLng? focalLatLng,
  MapLatLngBounds? latLngBounds,
  double minZoomLevel = kDefaultMinZoomLevel,
  double maxZoomLevel = kDefaultMaxZoomLevel,
  bool enablePinching = true,
  bool enablePanning = true,
  bool enableDoubleTapZooming = false,
  bool enableMouseWheelZooming = false,
  bool showToolbar = true,
  MapToolbarSettings toolbarSettings = const MapToolbarSettings(),
})  : _zoomLevel = zoomLevel.clamp(minZoomLevel, maxZoomLevel),
      _focalLatLng = focalLatLng,
      _latLngBounds = latLngBounds,
      _minZoomLevel = minZoomLevel,
      _maxZoomLevel = maxZoomLevel,
      _enablePinching = enablePinching,
      _enablePanning = enablePanning,
      _enableDoubleTapZooming = enableDoubleTapZooming,
      _enableMouseWheelZooming = enableMouseWheelZooming,
      _showToolbar = showToolbar,
      _toolbarSettings = toolbarSettings,
      _zoomController = ZoomableController();