简体   繁体   English

带有Google Maps API的Android中的MKMapView标题功能?

[英]MKMapView heading features in Android with Google Maps APIs?

How can I implement MKMapView heading features in Android with Google Maps APIs? 如何使用Google Maps API在Android中实现MKMapView标题功能?

Screenshot: iOS MKMapView with heading example 屏幕截图: 带有标题示例的iOS MKMapView

I would use sensors to the orientation of the map and display the map as if you were a navigation mode. 我将使用传感器来确定地图的方向并像导航模式一样显示地图。

Try using MapView which is just one of the several Map Objects . 尝试使用MapView ,它只是几个Map Object之一

A View which displays a map (with data obtained from the Google Maps service). 显示地图的视图(包含从Google Maps服务获取的数据)。 When focused, it will capture keypresses and touch gestures to move the map. 聚焦后,它将捕获按键和触摸手势以移动地图。

Users of this class must forward all the life cycle methods from the Activity or Fragment containing this view to the corresponding ones in this class. 此类的用户必须将所有生命周期方法从包含该视图的Activity或Fragment转发到此类中的相应方法。

For actual codes checkout the Google maps android samples in Github. 如需实际代码,请在Github中查看Google Maps android示例

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

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