简体   繁体   中英

The recalculated route can not show on map on Here android sdk 3.2 issue

I found an issue on Here Android SDK 3.2, when recalculation happened during navigation, the new route can not be seen on map, only white turn arrow on map. The previous SDK version don't has such issue.

It is a new Issue?

You can workaround this regression using NavigationManager.RerouteListener

private NavigationManager.RerouteListener rerouteHandler = new NavigationManager.RerouteListener() {
    @Override
    public void onRerouteEnd(Route route) {
        super.onRerouteEnd(route);
        map.addMapObject(new MapRoute(route);
    }
    ...
};

...

NavigationManager.getInstance().addRerouteListener(new WeakReference<>(rerouteHandler));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM