Browse Source

Merge remote-tracking branch 'origin/wu_2023_map' into wu_2023_map

dev
fmk 1 year ago
parent
commit
01ebd71412
  1. 12
      lib/union/location_map_page.dart

12
lib/union/location_map_page.dart

@ -455,7 +455,7 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
}
updateMapLine(List<BMFCoordinate> coordinates, int needHours, int needMinutes,
double needDistance) async {
double needDistance) {
try {
//
_mapController.cleanAllMarkers();
@ -502,12 +502,12 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
draggable: false,
);
_mapController.addMarker(terminalBmfMarker);
await _mapController.setVisibleMapBounds(
BMFCoordinateBounds(
_mapController.setVisibleMapRectWithPadding(
visibleMapBounds: BMFCoordinateBounds(
northeast: startLocation, southwest: endLocation),
true,);
_mapController.setZoomBy(-1);
_mapController.setScrollBy(0,-200);
animated: true,
insets:
EdgeInsets.only(top: 500.h, bottom: 200.h, left: 200.w, right: 200.w));
hours = needHours == 0 ? "" : "$needHours小时";
minutes = needMinutes == 0 ? "" : "$needMinutes分钟";

Loading…
Cancel
Save