在Android中正确旋转MapView的最简单方法?
我有一个 Android Activity,它通过 MapView
控件显示 Google Maps
并扩展 MapActivity
。当我使用方法 mapView.setRotation(some Integer)
而不是实际的图像旋转来编程旋转 MapView 时,整个控件将旋转,如下面的快照所示。谷歌地图默认应用程序旋转地图的最简单方法是什么?
我正在使用最新的地图和 Android API
I have an Android Activity that displays Google Maps
through MapView
control and extending MapActivity
. When I progrmatically rotate the MapView
using method mapView.setRotation(some Integer)
instead of actual image rotation whole control rotates as shown in snapshot below. What is the simplest way to rotate map as done by default app of Google Maps.
I am using latest Map and Android APIs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 ANDROID_SDK\add-ons\addon-google_apis-google_inc_-7\samples\MapsDemo 中的 MapsDemo 示例。它有旋转地图演示!
Check out MapsDemo examples in ANDROID_SDK\add-ons\addon-google_apis-google_inc_-7\samples\MapsDemo. It has rotation map demo!