mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:00:05 +00:00
Connect radar site layer signal to trigger update
This commit is contained in:
parent
de2e1fea3f
commit
6087c53b3e
3 changed files with 17 additions and 0 deletions
|
|
@ -899,6 +899,10 @@ void MapWidgetImpl::AddLayer(types::LayerType type,
|
|||
case types::InformationLayer::RadarSite:
|
||||
radarSiteLayer_ = std::make_shared<RadarSiteLayer>(context_);
|
||||
AddLayer(layerName, radarSiteLayer_, before);
|
||||
connect(radarSiteLayer_.get(),
|
||||
&RadarSiteLayer::RadarSiteSelected,
|
||||
widget_,
|
||||
&MapWidget::RadarSiteRequested);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ signals:
|
|||
double bearing,
|
||||
double pitch);
|
||||
void MapStyleChanged(const std::string& styleName);
|
||||
void RadarSiteRequested(const std::string& id);
|
||||
void RadarSiteUpdated(std::shared_ptr<config::RadarSite> radarSite);
|
||||
void RadarSweepUpdated();
|
||||
void RadarSweepNotUpdated(types::NoUpdateReason reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue