mapsplugin/cordova-plugin-googlemaps

Zoom gets interrupted during animation

Opened this issue · 0 comments

I'm submitting a ... (check one with "x")

  • question
  • any problem or bug report

OS: (check one with "x")

  • Android
  • iOS
  • Browser

cordova information: (run $> cordova plugin list)

branch-cordova-sdk 3.2.0 "branch-cordova-sdk"
com.fedirts.cameraroll 0.7.0 "CameraRoll"
com.googlemaps.ios 3.9.0 "Google Maps SDK for iOS"
cordova-background-geolocation 3.6.2 "BackgroundGeolocation"
cordova-launch-review 4.0.1 "Launch Review"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 3.2.2 "Advanced HTTP plugin"
cordova-plugin-android-notch 1.0.0 "AndroidNotch"
cordova-plugin-android-permissions 1.1.2 "Permissions"
cordova-plugin-background-fetch 6.0.8 "CDVBackgroundFetch"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-camera 6.0.0 "Camera"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-enable-multidex 0.2.0 "Enable Multidex"
cordova-plugin-file-transfer 2.0.0-dev "File Transfer"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-googleplus 8.5. "Google SignIn"
cordova-plugin-inappbrowser 5.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
cordova-plugin-local-notification 0.9.0-beta.4 "LocalNotification"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-media 5.0.4-dev "Media"
cordova-plugin-native-logs 1.0.5 "Native Logs"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-purchase 10.5.0 "Purchase"
cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple"
cordova-plugin-statusbar 3.0.0-dev "StatusBar"
cordova-plugin-video-editor 1.1.3 "VideoEditor"
cordova-plugin-x-socialsharing 6.0.3 "SocialSharing"
cordova-sqlite-storage 6.0.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"
cordova.plugins.diagnostic 6.1.1 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
pushy-cordova-receiver 1.0.0 "Pushy SDK Receiver for Cordova"
pushy-cordova 1.0.40 "PushySDK"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

@ionic-native/core : 
@ionic-native/google-maps : 

Current behavior:

Sometimes when I use animateCamera the animation doesn't get to completion. It stops unexpectedly.

Expected behavior:

The animation always moves to the correct target and at the correct zoom level completely.

Screen capture or video record:

Related code, data or error log (please format your code or data):

        map.addMarker(
            {
                position: latLng,
                title: title,
                snippet: snippet,
                icon: image,
                markerClick: function (marker) {
                    marker.showInfoWindow();
                },
            },
            function (marker) {
                    map.animateCamera(
                        {
                            target: latLng,
                            // zoom: globals.defaultMapZoom,
                            duration: globals.mapZoomDuration,
                        },
                        function () {
                            someOtherFunc(lat, lng);
                        }
                    );
                }
            }
        );

Support this plugin activity

I appreicate if you give me a beer 🍺 from here