Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在模拟卡车路线的逐向导航,有时 currentManeuver 不遵循路线的路径。通过机动导航后,导航将重新计算,并继续尝试将我引导到不是我的路线目的地的地方。这是 的屏幕截图。TTS 机动[一英里后保持右转并离开]。
问题是导航地图组件在离开页面后没有卸载,因此多条路线同时处于活动状态,导致不断重新路由和不正确的操作。在使用 useFocusEffect 挂载/卸载导航地图后,每次我导航到地图时,只有 1 条路线被添加到地图对象中。