诺基亚此处映射导航标记方向 [英] Nokia Here maps Navigation marker orientation

查看:62
本文介绍了诺基亚此处映射导航标记方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里使用Android中的转弯导航地图.我想在导航中使用设备方向设置标记的方向,换句话说,我想将设备方向信息放入此处的地图中.

I am using here maps for Turn-by-Turn Navigation in Android. I want to set the orientation of the marker in Navigation with the device orientation, in other words, I want to put device orientation info into here maps.

例如.我的目的地朝东,但我朝西,所以导航应告诉我转'U'形弯,然后继续操作而不是开始移动指针.

Eg. My destination is towards east but I am facing west so Navigation should tell me to take 'U' turn and then proceed instead of start moving the pointer.

因此,诺基亚中是否有任何api可以在此进行映射,或者在初始化导航时可以在sdk中在map进行此映射.

So is there any api in Nokia here maps which does this or here maps does this inside the sdk while initializing Navigation.

推荐答案

此处HERE MapMarker API不提供直接执行此操作的功能. MapMarker 的默认行为是自动调整方向,以使标记图像始终在屏幕(地图)上朝上.目前,无法覆盖此行为.

The HERE MapMarker API does not provide functions to do this directly. The MapMarker default behaviour is to orient itself automatically so that the marker image is always facing "up" on the screen (map). Currently this behaviour cannot be overridden.

您可以尝试的一件事是根据自己的需求旋转要添加到 MapMarker 中的实际 Image ,并使用 MapMarker 更新旋转的 Image .

One thing you can try is to rotate the actual Image you are adding to the MapMarker based on your requirements and update the MapMarker with the rotated Image.

这篇关于诺基亚此处映射导航标记方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆