MapZoomPanBehavior constructor
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(),
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();