导航时如何将 HERE 地图视图向右移动

How to shift HERE Map View to the right when navigating

我正在使用 HERE SDK Android 制作导航应用程序。在导航过程中,我想在左侧地图的顶部展开叠加视图。这导致我的一些导航视图被切断。所以我想将导航中心向右移动。这样路线和我的箭头将移到屏幕右侧可以看到的地方。

有没有办法使用 HERE android SDK 来完成此操作?

我试过查看 MapSchemes,但这似乎无法满足我的要求。

我想更简洁地说我想在导航过程中将我的地图中心点向右移动。

看看 Map class 中的 setTransformCenter。 这听起来像你要找的东西:

Sets a center coordinate for Map transformations such as zooming. Transformations performed after calling this method will be based on this new center coordinate. The transform center may be different than the Map center. Developer must not use this method and setPadding(int, int, int, int) at the same time as the only one of them will be taken into account, depending on the order of invocation.

https://developer.here.com/documentation/android-starter/api_reference_java/com/here/android/mpa/mapping/Map.html#setTransformCenter-android.graphics.PointF-