缓存路由在 Skmaps 上被清除

Cached Route is Cleared on Skmaps

我正在尝试使用 SkRouteManager 的 saveroutetocache 保存路线,并使用 loadroutefromcache 显示路线但实际上路线没有被保存所以每次我从存储的 id 加载它时,它显示无法计算路线。

有什么方法可以不只在当前地图视图中保存路线吗?

查看 dedicated chapter for route caching/loading in the documentation and also see the implementation in the demo project (you will have to make sure that "provideMultipleMapSupport" is true in the demo project's manifest for the multiple map views code to be active - see this 了解详情)