2/9/1
This commit is contained in:
@@ -22,6 +22,7 @@ class GoogleDriverMap extends StatelessWidget {
|
||||
builder: (controller) => GoogleMap(
|
||||
onMapCreated: controller.onMapCreated,
|
||||
initialCameraPosition: CameraPosition(
|
||||
// bearing: 45,
|
||||
target: locationController.myLocation,
|
||||
zoom: 15,
|
||||
tilt: 40,
|
||||
@@ -31,8 +32,15 @@ class GoogleDriverMap extends StatelessWidget {
|
||||
print(position);
|
||||
},
|
||||
minMaxZoomPreference: const MinMaxZoomPreference(6, 18),
|
||||
myLocationEnabled: true,
|
||||
compassEnabled: true,
|
||||
mapType: MapType.normal,
|
||||
trafficEnabled: true,
|
||||
buildingsEnabled: true,
|
||||
mapToolbarEnabled: true,
|
||||
zoomControlsEnabled: true,
|
||||
fortyFiveDegreeImageryEnabled: true,
|
||||
zoomGesturesEnabled: true,
|
||||
polylines: {
|
||||
Polyline(
|
||||
zIndex: 2,
|
||||
@@ -44,7 +52,7 @@ class GoogleDriverMap extends StatelessWidget {
|
||||
polylineId: const PolylineId('route1'),
|
||||
points: controller.polylineCoordinates,
|
||||
color: AppColor.greenColor,
|
||||
width: 5,
|
||||
width: 3,
|
||||
),
|
||||
Polyline(
|
||||
zIndex: 2,
|
||||
@@ -55,8 +63,8 @@ class GoogleDriverMap extends StatelessWidget {
|
||||
visible: true,
|
||||
polylineId: const PolylineId('route'),
|
||||
points: controller.polylineCoordinatesDestination,
|
||||
color: AppColor.redColor,
|
||||
width: 5,
|
||||
color: AppColor.primaryColor,
|
||||
width: 2,
|
||||
),
|
||||
},
|
||||
markers: {
|
||||
|
||||
Reference in New Issue
Block a user