Skip to content

Commit 5aca76c

Browse files
committed
Use moveCamera instead of animateCamera
animateCamera is having problems on web
1 parent 81fe9d6 commit 5aca76c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/dashboard/accessory_map_list_vert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _AccessoryMapListVerticalState extends State<AccessoryMapListVertical> {
2424
MapboxMapController? _mapController;
2525

2626
void _centerPoint(LatLng point) {
27-
_mapController?.animateCamera(
27+
_mapController?.moveCamera(
2828
CameraUpdate.newCameraPosition(
2929
CameraPosition(
3030
target: point,

lib/history/accessory_history.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class _AccessoryHistoryState extends State<AccessoryHistory> {
5858
}
5959

6060
void _onStyleLoaded() {
61-
_mapController?.animateCamera(
61+
_mapController?.moveCamera(
6262
CameraUpdate.newLatLngBounds(
6363
LatLngBounds(
6464
southwest: LatLng(

lib/map/map.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class _AccessoryMapState extends State<AccessoryMap> {
5353
if (hereLocation != null) hereLocation,
5454
].toList();
5555

56-
_mapController?.animateCamera(
56+
_mapController?.moveCamera(
5757
CameraUpdate.newLatLngBounds(
5858
LatLngBounds(
5959
southwest: LatLng(

0 commit comments

Comments
 (0)