      if (map == nullptr && (uiState()->primeType() || !MAPBOX_TOKEN.isEmpty())) {
        MapWindow * m = new MapWindow(get_mapbox_settings());
        map = m;
  
        QObject::connect(uiState(), &UIState::offroadTransition, m, &MapWindow::offroadTransition);
  
        m->setFixedWidth(topWidget(this)->width() / 2 - bdr_s);
        split->insertWidget(0, m);
  
        // Make map visible after adding to split
        m->offroadTransition(offroad);
 
</s> remove       MapWindow * m = new MapWindow(get_mapbox_settings());
 </s> add       auto m = new MapPanel(get_mapbox_settings()); </s> remove       // Make map visible after adding to split
      m->offroadTransition(offroad);
 </s> add       // hidden by default, made visible when navRoute is published
      m->setVisible(false); </s> remove   recent_layout->addStretch();
 </s> add   // add home and work if missing
  if (!has_home) {
    auto widget = new DestinationWidget(this);
    widget->unset(NAV_FAVORITE_LABEL_HOME);
    destinations_layout->insertWidget(0, widget);
  }
  if (!has_work) {
    auto widget = new DestinationWidget(this);
    widget->unset(NAV_FAVORITE_LABEL_WORK);
    // TODO: refactor to remove this hack
    int index = !has_home || (current_destination && current_destination->isFavorite() && current_destination->label() == NAV_FAVORITE_LABEL_HOME) ? 0 : 1;
    destinations_layout->insertWidget(index, widget);
  }

  destinations_layout->addStretch();
      if (map == nullptr && (uiState()->primeType() || !MAPBOX_TOKEN.isEmpty())) {
        MapWindow * m = new MapWindow(get_mapbox_settings());
        map = m;
  


        m->setFixedWidth(topWidget(this)->width() / 2 - bdr_s);
        split->insertWidget(0, m);
  
        // Make map visible after adding to split
        m->offroadTransition(offroad);
keep keep keep keep replace replace keep keep keep keep keep
 UI: improved nav destination entry (#28476) 
selfdrive/ui/qt/onroad.cc