summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_layout.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-09 15:23:12 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-09 17:26:13 +0200
commit89665326c2251608ac2f3408f73b781a23fb1ba5 (patch)
tree0d17ccea6e047343d347340b159fdb6b48d3910d /src/mbgl/layout/symbol_layout.hpp
parentd36958997b7db19d9d5e9ec8e5ea06210a598502 (diff)
downloadqtlocation-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.hpp3
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,