mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
Update the map widget when requested by a layer
This commit is contained in:
parent
ad4c402404
commit
320857328c
2 changed files with 8 additions and 0 deletions
|
|
@ -969,6 +969,11 @@ void MapWidgetImpl::AddLayer(const std::string& id,
|
|||
|
||||
layerList_.push_back(id);
|
||||
genericLayers_.push_back(layer);
|
||||
|
||||
connect(layer.get(),
|
||||
&GenericLayer::NeedsRendering,
|
||||
widget_,
|
||||
[this]() { widget_->update(); });
|
||||
}
|
||||
catch (const std::exception&)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue