mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 02:40:06 +00:00
Refactor QMapLibreGL to QMapLibre
This commit is contained in:
parent
db0d26a4ad
commit
1fd52f771c
55 changed files with 305 additions and 313 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <QMapLibreGL/types.hpp>
|
||||
#include <QMapLibre/Types>
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
#include <units/length.h>
|
||||
|
||||
|
|
@ -14,9 +14,9 @@ namespace maplibre
|
|||
{
|
||||
|
||||
units::length::meters<double>
|
||||
GetMapDistance(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
glm::mat4 GetMapMatrix(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
glm::vec2 GetMapScale(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
GetMapDistance(const QMapLibre::CustomLayerRenderParameters& params);
|
||||
glm::mat4 GetMapMatrix(const QMapLibre::CustomLayerRenderParameters& params);
|
||||
glm::vec2 GetMapScale(const QMapLibre::CustomLayerRenderParameters& params);
|
||||
|
||||
/**
|
||||
* @brief Determine whether a point lies within a polygon
|
||||
|
|
@ -29,7 +29,7 @@ glm::vec2 GetMapScale(const QMapLibreGL::CustomLayerRenderParameters& params);
|
|||
bool IsPointInPolygon(const std::vector<glm::vec2>& vertices,
|
||||
const glm::vec2& point);
|
||||
|
||||
glm::vec2 LatLongToScreenCoordinate(const QMapLibreGL::Coordinate& coordinate);
|
||||
glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate);
|
||||
|
||||
} // namespace maplibre
|
||||
} // namespace util
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue