mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 03:10:04 +00:00
Refactor QMapLibreGL to QMapLibre
This commit is contained in:
parent
db0d26a4ad
commit
1fd52f771c
55 changed files with 305 additions and 313 deletions
|
|
@ -20,14 +20,14 @@ public:
|
|||
|
||||
~Impl() {}
|
||||
|
||||
std::weak_ptr<QMapLibreGL::Map> map_ {};
|
||||
MapSettings settings_ {};
|
||||
float pixelRatio_ {1.0f};
|
||||
common::RadarProductGroup radarProductGroup_ {
|
||||
std::weak_ptr<QMapLibre::Map> map_ {};
|
||||
MapSettings settings_ {};
|
||||
float pixelRatio_ {1.0f};
|
||||
common::RadarProductGroup radarProductGroup_ {
|
||||
common::RadarProductGroup::Unknown};
|
||||
std::string radarProduct_ {"???"};
|
||||
int16_t radarProductCode_ {0};
|
||||
QMapLibreGL::CustomLayerRenderParameters renderParameters_ {};
|
||||
std::string radarProduct_ {"???"};
|
||||
int16_t radarProductCode_ {0};
|
||||
QMapLibre::CustomLayerRenderParameters renderParameters_ {};
|
||||
|
||||
std::shared_ptr<view::OverlayProductView> overlayProductView_ {nullptr};
|
||||
std::shared_ptr<view::RadarProductView> radarProductView_;
|
||||
|
|
@ -43,7 +43,7 @@ MapContext::~MapContext() = default;
|
|||
MapContext::MapContext(MapContext&&) noexcept = default;
|
||||
MapContext& MapContext::operator=(MapContext&&) noexcept = default;
|
||||
|
||||
std::weak_ptr<QMapLibreGL::Map> MapContext::map() const
|
||||
std::weak_ptr<QMapLibre::Map> MapContext::map() const
|
||||
{
|
||||
return p->map_;
|
||||
}
|
||||
|
|
@ -84,12 +84,12 @@ int16_t MapContext::radar_product_code() const
|
|||
return p->radarProductCode_;
|
||||
}
|
||||
|
||||
QMapLibreGL::CustomLayerRenderParameters MapContext::render_parameters() const
|
||||
QMapLibre::CustomLayerRenderParameters MapContext::render_parameters() const
|
||||
{
|
||||
return p->renderParameters_;
|
||||
}
|
||||
|
||||
void MapContext::set_map(const std::shared_ptr<QMapLibreGL::Map>& map)
|
||||
void MapContext::set_map(const std::shared_ptr<QMapLibre::Map>& map)
|
||||
{
|
||||
p->map_ = map;
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ void MapContext::set_radar_product_code(int16_t radarProductCode)
|
|||
}
|
||||
|
||||
void MapContext::set_render_parameters(
|
||||
const QMapLibreGL::CustomLayerRenderParameters& params)
|
||||
const QMapLibre::CustomLayerRenderParameters& params)
|
||||
{
|
||||
p->renderParameters_ = params;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue