ui/map: initialize speed filter with current speed (#29605)

fix map starting from 0 zoom
old-commit-hash: b9d77afd7e91d46916b471bdc067f83edb2d64de
This commit is contained in:
Shane Smiskol
2023-08-24 14:53:47 -07:00
committed by GitHub
parent c4bb5bbf04
commit 9a1f82a853
+1 -1
View File
@@ -18,7 +18,7 @@ const float MAX_PITCH = 50;
const float MIN_PITCH = 0;
const float MAP_SCALE = 2;
MapWindow::MapWindow(const QMapboxGLSettings &settings) : m_settings(settings), velocity_filter(0, 10, 0.05) {
MapWindow::MapWindow(const QMapboxGLSettings &settings) : m_settings(settings), velocity_filter(0, 10, 0.05, false) {
QObject::connect(uiState(), &UIState::uiUpdate, this, &MapWindow::updateState);
map_overlay = new QWidget (this);