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

fix map starting from 0 zoom
This commit is contained in:
Shane Smiskol
2023-08-24 14:53:47 -07:00
committed by GitHub
parent fc8c97e7a9
commit b9d77afd7e
+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);