mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Use a single radar product manager across multiple maps
This commit is contained in:
parent
adde167899
commit
4485b915c1
3 changed files with 54 additions and 10 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue