简体   繁体   English

osmdroid地图通过动画更改方向

[英]osmdroid map change orientation with animation

I am using MapView.setMapOrientation() method for changing mapview's orientation. 我正在使用MapView.setMapOrientation()方法更改mapview的方向。 Now I want to add some animation while changing orientation. 现在,我想在更改方向时添加一些动画。 Can you suggest me how to do it? 你能建议我怎么做吗?

从6.0.3版本开始,控制器支持animateTo中的方向,例如以下内容(未经测试的代码!)参考: https : //github.com/osmdroid/osmdroid/issues/1119

mapView.getController().animateTo(myLocation,mapView.getZoomLevelDouble(),null, (float) mapHeading);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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