Skip to content

Commit

Permalink
Use moveCamera instead of animateCamera
Browse files Browse the repository at this point in the history
animateCamera is having problems on web
  • Loading branch information
wangwillian0 committed May 31, 2023
1 parent 81fe9d6 commit 5aca76c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/dashboard/accessory_map_list_vert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _AccessoryMapListVerticalState extends State<AccessoryMapListVertical> {
MapboxMapController? _mapController;

void _centerPoint(LatLng point) {
_mapController?.animateCamera(
_mapController?.moveCamera(
CameraUpdate.newCameraPosition(
CameraPosition(
target: point,
Expand Down
2 changes: 1 addition & 1 deletion lib/history/accessory_history.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class _AccessoryHistoryState extends State<AccessoryHistory> {
}

void _onStyleLoaded() {
_mapController?.animateCamera(
_mapController?.moveCamera(
CameraUpdate.newLatLngBounds(
LatLngBounds(
southwest: LatLng(
Expand Down
2 changes: 1 addition & 1 deletion lib/map/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _AccessoryMapState extends State<AccessoryMap> {
if (hereLocation != null) hereLocation,
].toList();

_mapController?.animateCamera(
_mapController?.moveCamera(
CameraUpdate.newLatLngBounds(
LatLngBounds(
southwest: LatLng(
Expand Down

0 comments on commit 5aca76c

Please sign in to comment.