Use a single radar product manager across multiple maps

This commit is contained in:
Dan Paulat 2021-11-22 14:58:48 -06:00
parent adde167899
commit 4485b915c1
3 changed files with 54 additions and 10 deletions

View file

@ -53,7 +53,7 @@ public:
widget_ {widget},
settings_(settings),
map_(),
radarProductManager_ {std::make_shared<manager::RadarProductManager>()},
radarProductManager_ {manager::RadarProductManager::Instance("KLSX")},
radarProductLayer_ {nullptr},
radarProductView_ {nullptr},
overlayLayer_ {nullptr},
@ -98,8 +98,6 @@ MapWidget::MapWidget(const QMapboxGLSettings& settings) :
p(std::make_unique<MapWidgetImpl>(this, settings))
{
setFocusPolicy(Qt::StrongFocus);
p->radarProductManager_->Initialize();
}
MapWidget::~MapWidget()