如何在HERE地图Android高级sdk中提供自定义机动图标



我需要提供我自己的箭头图标,如中所述https://developer.here.com/documentation/android-premium/api_reference_java/com/here/android/mpa/routing/Maneuver.Icon.html但我不知道该怎么做。

我用NavigationManager开始导航计算的MapRoute,并获得了机动对象。有人能帮我如何在地图上添加箭头图标吗。谢谢

NavigationManager navigationManager = NavigationManager.getInstance();
navigationManager.setMap(mMap);
navigationManager.addNewInstructionEventListener(new WeakReference<>(new NavigationManager.NewInstructionEventListener() {
@Override
public void onNewInstructionEvent() {
super.onNewInstructionEvent();
navigationManager.getNextManeuver();// Maneuver
// how to set icon to this maneuver??
}
}));
navigationManager.startNavigation(mapRoute.getRoute());

HERE Mobile SDK中的Manivement类包含一个名为Icon的枚举属性。图标包含对机动的描述,但不提供视觉表示。您可以收集自己的表示(图像(,并根据枚举集将其显示在地图上。

最新更新