【问题标题】:Is it possible to move the camera on a Google Map in Satellite mode?是否可以在卫星模式下在谷歌地图上移动相机?
【发布时间】:2019-07-29 12:08:39
【问题描述】:

在一个 Android 应用程序中,我试图模拟一片土地的天桥。 我可以很高兴地放大起点并将相机动画到终点。 当它是正常的 MAP_TYPE 时,这可以正常工作。 将其更改为 SATELLITE 的 MAP_TYPE,它只会在显示最终位置之前暂停一段时间。 任何让相机在卫星视图中从头到尾进行动画处理的方法,我都不介意在必要时预加载一些图像。 干杯。

【问题讨论】:

    标签: android google-maps maps


    【解决方案1】:

    嗯,是的,你可以。 你需要做的是让弯针完成绘图,然后让你的相机移动。 所以,一个典型的分步动画会有点像这样。

    Move camera to position
    When animation completes (onFinish)...
        Start new thread, delay for a second or two, then on UI thread do camera 
        move.(onFinish of this animation, start new thread and do another camera 
        move. etc etc
    

    【讨论】:

      猜你喜欢
      • 2010-11-29
      • 2021-10-01
      • 2015-03-23
      • 1970-01-01
      • 2017-12-30
      • 1970-01-01
      • 2017-12-22
      • 2010-10-04
      • 1970-01-01
      相关资源
      最近更新 更多