【问题标题】:cordova-plugin-googlemaps Camera Speed Slowcordova-plugin-googlemaps 相机速度慢
【发布时间】:2016-12-20 17:26:06
【问题描述】:

如何调整相机的动画速度?

感觉不像是滞后或任何东西,它只是动画缓慢。

在教程或其他任何地方都没有提到这一点

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

教程:https://github.com/mapsplugin/cordova-plugin-googlemaps

【问题讨论】:

    标签: javascript html cordova google-maps-api-3


    【解决方案1】:

    经过一番挖掘,我发现教程中的解决方案几乎看不到。我不认为你可以找到,除非你仔细看。不管怎样,就在这里

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

    【讨论】:

      猜你喜欢
      • 2018-08-04
      • 1970-01-01
      • 2018-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多