diff options
Diffstat (limited to 'drape_frontend/route_builder.hpp')
-rw-r--r-- | drape_frontend/route_builder.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drape_frontend/route_builder.hpp b/drape_frontend/route_builder.hpp index 166a9abca0..f027aa5650 100644 --- a/drape_frontend/route_builder.hpp +++ b/drape_frontend/route_builder.hpp @@ -37,6 +37,11 @@ private: TFlushRouteFn m_flushRouteFn; TFlushRouteArrowsFn m_flushRouteArrowsFn; - std::unordered_map<dp::DrapeID, m2::PolylineD> m_routeCache; + struct RouteCacheData + { + m2::PolylineD m_polyline; + double m_baseDepthIndex = 0.0; + }; + std::unordered_map<dp::DrapeID, RouteCacheData> m_routeCache; }; } // namespace df |