summaryrefslogtreecommitdiff
path: root/src/mbgl/util/merge_lines.hpp
blob: 4460a0bcea4632287a240d4cae8b047d12388652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef MBGL_UTIL_MERGELINES
#define MBGL_UTIL_MERGELINES

#include <map>
#include <string>
#include <vector>
#include <mbgl/renderer/symbol_bucket.hpp>

namespace mbgl {
namespace util {

unsigned int mergeFromRight(std::vector<SymbolFeature> &features,
                            std::map<std::string, unsigned int> &rightIndex,
                            std::map<std::string, unsigned int>::iterator left,
                            std::string &rightKey,
                            std::vector<std::vector<Coordinate>> &geom);

unsigned int mergeFromLeft(std::vector<SymbolFeature> &features,
                           std::map<std::string, unsigned int> &leftIndex,
                           std::string &leftKey,
                           std::map<std::string, unsigned int>::iterator right,
                           std::vector<std::vector<Coordinate>> &geom);

void mergeLines(std::vector<SymbolFeature> &features);

} // end namespace util
} // end namespace mbgl

#endif