mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:10:06 +00:00
RadarProductView does not need QMapboxGL
This commit is contained in:
parent
7747e869ba
commit
d7e60a0d8c
7 changed files with 25 additions and 86 deletions
|
|
@ -104,8 +104,7 @@ void MapWidget::changeStyle()
|
|||
void MapWidget::AddLayers()
|
||||
{
|
||||
std::shared_ptr<view::RadarProductView> radarProductView =
|
||||
std::make_shared<view::RadarProductView>(p->radarProductManager_,
|
||||
p->map_);
|
||||
std::make_shared<view::RadarProductView>(p->radarProductManager_);
|
||||
|
||||
radarProductView->Initialize();
|
||||
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ void RadarProductLayer::render(
|
|||
|
||||
p->shaderProgram_.Use();
|
||||
|
||||
const float scale = p->radarProductView_->scale() * 2.0f *
|
||||
const float scale = std::pow(2.0, params.zoom) * 2.0f *
|
||||
mbgl::util::tileSize / mbgl::util::DEGREES_MAX;
|
||||
const float xScale = scale / params.width;
|
||||
const float yScale = scale / params.height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue