summaryrefslogtreecommitdiff
path: root/src/mbgl/map/geometry_tile.cpp
blob: 1bb132f3162cce8be2e74f8369427da0c97d4d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <mbgl/map/geometry_tile.hpp>
#include <mbgl/style/filter_expression.hpp>
#include <mbgl/style/filter_expression_private.hpp>

namespace mbgl {

mapbox::util::optional<Value> GeometryTileFeatureExtractor::getValue(const std::string& key) const {
    if (key == "$type") {
        return Value(uint64_t(feature.getType()));
    }

    return feature.getValue(key);
}

template bool evaluate(const FilterExpression&, const GeometryTileFeatureExtractor&);

} // namespace mbgl