[英]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 教程: 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
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.