  
  #include <eigen3/Eigen/Dense>
  
  #include <QDebug>
  
  #include "common/transformations/coordinates.hpp"
  #include "selfdrive/ui/qt/maps/map_helpers.h"
  #include "selfdrive/ui/qt/util.h"
  #include "selfdrive/ui/ui.h"
  
 
</s> remove     QString fn = "../assets/navigation/direction_";
 </s> add     QString fn = "lane_direction_"; </s> remove 
    // for rhd, reflect direction and then flip
    if (is_rhd) {
      if (fn.contains("left")) {
        fn.replace("left", "right");
      } else if (fn.contains("right")) {
        fn.replace("right", "left");
      }
    }

    QPixmap pix(fn);
    if (is_rhd) {
      pix = pix.transformed(QTransform().scale(-1, 1));
    }
    icon_01->setPixmap(pix.scaledToWidth(200, Qt::SmoothTransformation));
 </s> add     bool rhd = is_rhd && (fn.contains("_left") || fn.contains("_right"));
    icon_01->setPixmap(pixmap_cache[!rhd ? fn : "rhd_" + fn]); </s> remove     fn += ICON_SUFFIX;
 </s> add  </s> remove     QString fn = "../assets/navigation/direction_" + type;
 </s> add     QString fn = "direction_" + type;
#include <QDir>
  
  #include <eigen3/Eigen/Dense>
  
  #include <QDebug>
#include <QDir>
  
  #include "common/transformations/coordinates.hpp"
  #include "selfdrive/ui/qt/maps/map_helpers.h"
  #include "selfdrive/ui/qt/util.h"
  #include "selfdrive/ui/ui.h"
  
keep keep keep add keep keep keep keep keep keep
 ui/map: cache navigation images at startup (#28783)

Co-authored-by: Cameron Clough <cameronjclough@gmail.com> 
selfdrive/ui/qt/maps/map.cc