简体   繁体   中英

cordova-plugin-googlemaps Camera Speed Slow

How do I adjust animation speed of camera?

It doesn't feel like lag or anything, it just animates slowly.

There is no mention of this in tutorial or anywhere else

map.animateCamera({
    target: {
        lat: "100",
        lng: "100",
        speed: 10 //I tried adding this, it doesn't do anything
    },
    zoom: 15
});

Tutorial: https://github.com/mapsplugin/cordova-plugin-googlemaps

After some digging around I found the solution in the tutorial barely visible. I don't think you can find unless you look hard. Anyways, here it is

map.animateCamera({
    target: {
        lat: "100",
        lng: "100"
    },
    zoom: 15,
    duration: 1000 //Camera Animation speed in milliseconds
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM