|
|
|
@ -213,9 +213,7 @@ void MapWindow::updateState(const UIState &s) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (sm.rcv_frame("navRoute") != route_rcv_frame) { |
|
|
|
|
qWarning() << "Updating navLayer with new route" << m_settings.apiKey(); |
|
|
|
|
// m_settings.setApiKey(get_mapbox_token());
|
|
|
|
|
// qDebug() << m_settings.apiKey();
|
|
|
|
|
qWarning() << "Updating navLayer with new route"; |
|
|
|
|
auto route = sm["navRoute"].getNavRoute(); |
|
|
|
|
auto route_points = capnp_coordinate_list_to_collection(route.getCoordinates()); |
|
|
|
|
QMapLibre::Feature feature(QMapLibre::Feature::LineStringType, route_points, {}, {}); |
|
|
|
|