You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[google_maps_flutter] Change camera animation speed (and curve?) #39810
Awesome work on the plugin, loving it! I was wondering if there is currently a way to change the animation speed of the .animateCamera method and if not, is it planned for a future release?
@Marek00Malik please, use thumb up reaction to prioritize the issue, a lot of us are actually tracking issues and receiving notifications about every "+1" comment
If you really care about changing the speed animation - I could easily provide you with instructions and you will make a PR to fix it
Reacted by aderts, Ivan Rigamonti, Handi Deyana, Eric Poulin, Caio Coelho, Najib Ghadri, Steve Cahn, mm's, Meghanath Ganji, Akshar Patel and 42 more
Reacted by Caio Coelho, Guilherme Daldim, Nazarii Boichyshyn, Deekshith Shetty, Stephan Ng, Muhammad Usama Ashraf, Abd Elkebir HAKAM, renatliquidbarcodes and walidsabir
what is below,what is Maincontroller here please? final LatLng mapViewCenter = MainController.model.appViewsState.mapViewCenter;
@NeerBhar that was a piece of my code storing the map view center, I removed that and I updated my code sample to make this clearer, by adding this to the beginning:
// Set this value based on your initial map positionLatLng _mapViewCenter =LatLng(0, 0);
@overrideWidgetbuild(BuildContext context) {
returnGoogleMap(
// ... set other attributes
onCameraMove: (CameraPosition cameraPosition) {
_mapViewCenter = cameraPosition.target;
},
);
}
voidanimateMapViewCenterToCoordinates(finalLatLng coordinates) {
finalLatLng mapViewCenter = _mapViewCenter;
//...
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
rostopira commentedon Sep 4, 2019
Google Maps native SDK's support animation speed (on Android, at least), actually easy to implement
Curve? Nope
w4-wonjerry commentedon Jan 21, 2020
+1
thomaaam commentedon May 9, 2020
Any update on this?
Marek00Malik commentedon May 9, 2020
+1
rostopira commentedon May 9, 2020
@Marek00Malik please, use thumb up reaction to prioritize the issue, a lot of us are actually tracking issues and receiving notifications about every "+1" comment
If you really care about changing the speed animation - I could easily provide you with instructions and you will make a PR to fix it
rlbartz commentedon Jul 13, 2020
I'm waiting for that too in order to get smother camera transitions when updating camera position every 1 second.
allanwolski commentedon Jul 20, 2020
I also need this, because the speed is different on Android and iOS.
Related
#44284
10 remaining items
himanshudeveloper commentedon Jan 4, 2024
assylman commentedon Apr 30, 2024
bugrevealingbme commentedon Aug 12, 2024
still no? +++
NeerBhar commentedon Sep 2, 2024
what is below,what is Maincontroller here please?
final LatLng mapViewCenter = MainController.model.appViewsState.mapViewCenter;
androidseb commentedon Sep 3, 2024
@NeerBhar that was a piece of my code storing the map view center, I removed that and I updated my code sample to make this clearer, by adding this to the beginning:
[google_maps_flutter] Platform interface for camera animation duration (
[google_maps_flutter] Add ability to animate camera with duration - p…
[google_maps_flutter] Add ability to animate camera with duration (#7648
github-actions commentedon Apr 8, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.