Connect radar site layer signal to trigger update

This commit is contained in:
Dan Paulat 2023-11-20 21:03:03 -06:00
parent de2e1fea3f
commit 6087c53b3e
3 changed files with 17 additions and 0 deletions

View file

@ -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:

View file

@ -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);