Skip to content

[google_maps_flutter] Change camera animation speed (and curve?) #39810

Closed
flutter/packages
#7648

Description

@tzvc

Hey there,

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?

Cheers

Activity

  1. rostopira commented on Sep 4, 2019

    @rostopira
    Contributor

    Google Maps native SDK's support animation speed (on Android, at least), actually easy to implement
    Curve? Nope

  2. added this to the milestone on Dec 21, 2019
  3. modified the milestones: , on Jan 7, 2020
  4. w4-wonjerry commented on Jan 21, 2020

    @w4-wonjerry

    +1

  5. added
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Feb 17, 2020
  6. thomaaam commented on May 9, 2020

    @thomaaam

    Any update on this?

  7. Marek00Malik commented on May 9, 2020

    @Marek00Malik

    +1

  8. rostopira commented on May 9, 2020

    @rostopira
    Contributor

    @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

  9. added
    P3Issues that are less important to the Flutter project
    on May 29, 2020
  10. rlbartz commented on Jul 13, 2020

    @rlbartz

    I'm waiting for that too in order to get smother camera transitions when updating camera position every 1 second.

  11. allanwolski commented on Jul 20, 2020

    @allanwolski

    I also need this, because the speed is different on Android and iOS.

    Related
    #44284

  12. 10 remaining items

  13. himanshudeveloper commented on Jan 4, 2024

    @himanshudeveloper
  14. assylman commented on Apr 30, 2024

    @assylman
  15. bugrevealingbme commented on Aug 12, 2024

    @bugrevealingbme

    still no? +++

  16. NeerBhar commented on Sep 2, 2024

    @NeerBhar
    final LatLng mapViewCenter = MainController.model.appViewsState.mapViewCenter;

    what is below,what is Maincontroller here please?
    final LatLng mapViewCenter = MainController.model.appViewsState.mapViewCenter;

  17. androidseb commented on Sep 3, 2024

    @androidseb
    final LatLng mapViewCenter = MainController.model.appViewsState.mapViewCenter;

    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 position
      LatLng _mapViewCenter = LatLng(0, 0);
    
      @override
      Widget build(BuildContext context) {
        return GoogleMap(
          // ... set other attributes
          onCameraMove: (CameraPosition cameraPosition) {
            _mapViewCenter = cameraPosition.target;
          },
        );
      }
    
      void animateMapViewCenterToCoordinates(final LatLng coordinates) {
        final LatLng mapViewCenter = _mapViewCenter;
    //...
  18. github-actions commented on Apr 8, 2025

    @github-actions

    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.

  19. locked as resolved and limited conversation to collaborators on Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions