[core] Avoid public geometry_tile_data.hpp include
This commit is contained in:
committed by
Konstantin Käfer
parent
a3c8fcda9c
commit
0be8309446
@@ -73,8 +73,9 @@ public:
|
||||
);
|
||||
}
|
||||
|
||||
template <class Feature>
|
||||
Range<T> evaluate(Range<InnerStops> coveringStops,
|
||||
const GeometryTileFeature& feature,
|
||||
const Feature& feature,
|
||||
T finalDefaultValue) const {
|
||||
optional<Value> v = feature.getValue(property);
|
||||
if (!v) {
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <mbgl/style/function/interval_stops.hpp>
|
||||
#include <mbgl/style/function/categorical_stops.hpp>
|
||||
#include <mbgl/style/function/identity_stops.hpp>
|
||||
#include <mbgl/tile/geometry_tile_data.hpp>
|
||||
#include <mbgl/util/interpolate.hpp>
|
||||
#include <mbgl/util/variant.hpp>
|
||||
|
||||
@@ -34,7 +33,8 @@ public:
|
||||
defaultValue(std::move(defaultValue_)) {
|
||||
}
|
||||
|
||||
T evaluate(const GeometryTileFeature& feature, T finalDefaultValue) const {
|
||||
template <class Feature>
|
||||
T evaluate(const Feature& feature, T finalDefaultValue) const {
|
||||
optional<Value> v = feature.getValue(property);
|
||||
if (!v) {
|
||||
return defaultValue.value_or(finalDefaultValue);
|
||||
|
||||
Reference in New Issue
Block a user