[英]How to provide custom Maneuver Icon in HERE Maps Android premium sdk?
我需要提供https://developer.here.com/documentation/android-premium/api_reference_java/com/here/android/mpa/routing/Maneuver.Icon.html中提到的我自己的箭頭圖標,但我沒有得到有關如何執行此操作的線索。
我使用NavigationManager開始了針對計算出的MapRoute的導航,並獲得了Maneuver對象。有人可以幫助我如何在地圖中添加箭頭圖標。 謝謝!
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中的Maneuver類包含一個名為Icon的枚舉屬性。 圖標包含對操作的描述,但不提供視覺表示。 您可以收集自己的表示形式(圖像),並根據枚舉集將其顯示在地圖上。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.