buildMapView method
Implementation
@override
Widget buildMapView(final BuildContext context, final _GoogleMapMVI mapViewInterface) {
return GoogleMap(
initialCameraPosition: _initialCameraPosition,
onMapCreated: _onMapCreated,
gestureRecognizers: _gestureRecognizers ?? const <Factory<OneSequenceGestureRecognizer>>{},
compassEnabled: _compassEnabled,
mapToolbarEnabled: _mapToolbarEnabled,
cameraTargetBounds: _cameraTargetBounds,
mapType: _mapType,
minMaxZoomPreference: _minMaxZoomPreference,
rotateGesturesEnabled: _rotateGesturesEnabled,
scrollGesturesEnabled: _scrollGesturesEnabled,
zoomControlsEnabled: _zoomControlsEnabled,
zoomGesturesEnabled: _zoomGesturesEnabled,
liteModeEnabled: _liteModeEnabled,
tiltGesturesEnabled: _tiltGesturesEnabled,
myLocationEnabled: _myLocationEnabled ?? false,
myLocationButtonEnabled: _myLocationButtonEnabled ?? true,
padding: _padding,
indoorViewEnabled: _indoorViewEnabled ?? false,
trafficEnabled: _trafficEnabled ?? false,
buildingsEnabled: _buildingsEnabled ?? true,
markers: _markers ?? const <Marker>{},
polygons: _polygons ?? const <Polygon>{},
polylines: _polylines ?? const <Polyline>{},
circles: _circles ?? const <Circle>{},
onCameraMoveStarted: _onCameraMoveStarted,
onCameraMove: (final CameraPosition newPosition) {
_onCameraMove?.call(newPosition);
mapViewInterface.cameraPosition = newPosition;
},
onCameraIdle: _onCameraIdle,
onTap: _onTap,
onLongPress: _onLongPress,
);
}