Так я устанавливаю исходное положение камеры
//initialize _center
Position _center;
final Set<Marker> _markers = {};
@override
void initState() {
super.initState();
//Then define _center in initState
_center = Position(locationData.latitude, locationData.longitude);
_markers.add(
Marker(
// This marker id can be anything that uniquely identifies each marker.
markerId: MarkerId(_center.toString()),
position: _center,
infoWindow: InfoWindow(
title: widget.hearingItem.location.locationName,
snippet: widget.hearingItem.location.address,
),
icon: BitmapDescriptor.defaultMarker,
),
);
}
GoogleMap(
myLocationEnabled: true,
onMapCreated: _onMapCreated,
markers: _markers,
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>[
Factory<OneSequenceGestureRecognizer>(
() => EagerGestureRecognizer(),
),
].toSet(),
//Finally assign _center to target in CameraPosition
initialCameraPosition: CameraPosition(
target: _center,
zoom: 11.0,
),
);