Nokia Here maps Navigation marker orientation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:40:50

问题


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.

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.

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/38315258/nokia-here-maps-navigation-marker-orientation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!