mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Add overlay layer with time
This commit is contained in:
parent
5a97d99a34
commit
d2d6cabf06
8 changed files with 292 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include <scwx/qt/map/map_widget.hpp>
|
||||
#include <scwx/qt/gl/gl.hpp>
|
||||
#include <scwx/qt/map/overlay_layer.hpp>
|
||||
#include <scwx/qt/map/radar_layer.hpp>
|
||||
#include <scwx/qt/map/radar_range_layer.hpp>
|
||||
|
||||
|
|
@ -118,6 +119,8 @@ void MapWidget::AddLayers()
|
|||
// QMapboxGL::addCustomLayer will take ownership of the QScopedPointer
|
||||
QScopedPointer<QMapbox::CustomLayerHostInterface> pHost(
|
||||
new RadarLayer(radarView, p->gl_));
|
||||
QScopedPointer<QMapbox::CustomLayerHostInterface> pOverlayHost(
|
||||
new OverlayLayer(radarView, p->gl_));
|
||||
|
||||
QString before = "ferry";
|
||||
|
||||
|
|
@ -134,6 +137,7 @@ void MapWidget::AddLayers()
|
|||
|
||||
p->map_->addCustomLayer("radar", pHost, before);
|
||||
RadarRangeLayer::Add(p->map_, before);
|
||||
p->map_->addCustomLayer("overlay", pOverlayHost);
|
||||
}
|
||||
|
||||
void MapWidget::keyPressEvent(QKeyEvent* ev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue