diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-09 15:23:12 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-09 17:26:13 +0200 |
commit | 89665326c2251608ac2f3408f73b781a23fb1ba5 (patch) | |
tree | 0d17ccea6e047343d347340b159fdb6b48d3910d /src/mbgl/layout/symbol_layout.hpp | |
parent | d36958997b7db19d9d5e9ec8e5ea06210a598502 (diff) | |
download | qtlocation-mapboxgl-89665326c2251608ac2f3408f73b781a23fb1ba5.tar.gz |
[core] Add unit test for calculateTileDistances
Diffstat (limited to 'src/mbgl/layout/symbol_layout.hpp')
-rw-r--r-- | src/mbgl/layout/symbol_layout.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.hpp b/src/mbgl/layout/symbol_layout.hpp index 8f6e4595e3..57a104bf45 100644 --- a/src/mbgl/layout/symbol_layout.hpp +++ b/src/mbgl/layout/symbol_layout.hpp @@ -55,7 +55,8 @@ public: * @return std::array<float, 2> offset along x- and y- axis correspondingly. */ static std::array<float, 2> evaluateVariableOffset(style::SymbolAnchorType anchor, std::array<float, 2> textOffset); - + + static std::vector<float> calculateTileDistances(const GeometryCoordinates& line, const Anchor& anchor); private: void addFeature(const size_t, |