导航图标在此期间通过转弯导航在此处丢失了SDK
打开应用程序时,有时将显示指针,有时不会显示。 在显示指针的情况下,当我们导航到另一个屏幕(活动/片段)并返回地图屏幕时,指针将消失。在logcat中没有错误的错误
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
打开应用程序时,有时将显示指针,有时不会显示。 在显示指针的情况下,当我们导航到另一个屏幕(活动/片段)并返回地图屏幕时,指针将消失。在logcat中没有错误的错误
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
切换MapViews时,请确保恢复它们。另外,您需要自己添加/删除/删除
location indicator
。在导航期间,您可以交换mapView
实例(如果需要):请确保将指示器设置为
visualnavigator
。有一个示例应用程序显示如何使用自定义位置指标:
https://github.com/heremaps/here-sdk-examples/tree/master/master/examples/latest/navigate/anvigate/android/navigationcustom
When you switch MapViews, make sure to resume them. Also, you need to add/remove the
LocationIndicator
yourself. During navigation you can swap theMapView
instance (if needed):Make sure to set the indicator also to the
VisualNavigator
.There is an example app that shows how to use custom location indicators:
https://github.com/heremaps/here-sdk-examples/tree/master/examples/latest/navigate/android/NavigationCustom