summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/merge_lines.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/layout/merge_lines.hpp')
-rw-r--r--src/mbgl/layout/merge_lines.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mbgl/layout/merge_lines.hpp b/src/mbgl/layout/merge_lines.hpp
new file mode 100644
index 0000000000..bb4c01f6a2
--- /dev/null
+++ b/src/mbgl/layout/merge_lines.hpp
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <unordered_map>
+#include <string>
+#include <vector>
+#include <mbgl/layout/symbol_layout.hpp>
+
+namespace mbgl {
+namespace util {
+
+unsigned int mergeFromRight(std::vector<SymbolFeature> &features,
+ std::unordered_map<std::string, unsigned int> &rightIndex,
+ std::unordered_map<std::string, unsigned int>::iterator left,
+ std::string &rightKey,
+ GeometryCollection &geom);
+
+unsigned int mergeFromLeft(std::vector<SymbolFeature> &features,
+ std::unordered_map<std::string, unsigned int> &leftIndex,
+ std::string &leftKey,
+ std::unordered_map<std::string, unsigned int>::iterator right,
+ GeometryCollection &geom);
+
+void mergeLines(std::vector<SymbolFeature> &features);
+
+} // end namespace util
+} // end namespace mbgl