此处API偏移量地图中心 [英] Here API offset map center

查看:58
本文介绍了此处API偏移量地图中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Here Android SDK API. 我通过以下方式设置位置指示器:

I'm using the Here Android SDK API. I set position indicator via:

positionManager.start(PositioningManager.LocationMethod.GPS_NETWORK);
map.getPositionIndicator().setVisible(true);
map.getPositionIndicator().setAccuracyIndicatorVisible(true);

与NavigationManager一起:

together with NavigationManager:

navMngr.setMapUpdateMode(NavigationManager.MapUpdateMode.ROADVIEW);

我的地图使用等轴测视图:

My map use isometric view:

clusterMap.setTilt(60);

那行得通,但是位置指示器在屏幕中央出现.我需要设置一些偏移(或填充),以便在中心下方显示位置指示器的方式(一些偏移或填充),以便驾驶员可以看到更多的前方道路.找不到用于设置位置指示器的填充以及绑定到视图中心的任何内容(仅适用于常规地图标记).

Thats works, but position indicator apears at the center of the screen. I need to set some offset (or padding) in order to display position indicator way below the center (some offset or padding), so driver could see more of the road ahead. Can't find anything for setting padding for position indicator and binding to view center (only for regular map markers).

任何帮助将不胜感化

Any help would be appreciated<

推荐答案

将地图的变换中心设置在您希望用户位置位于的屏幕位置.这就是我们实现它的方式.

Set the transform center of the map at the screen position where you want the user position to be at. That is how we accomplish it.

这篇关于此处API偏移量地图中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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