5 #include <mapbox/compatibility/value.hpp>
36 return value.match([](uint64_t t) {
return std::optional<T>(
static_cast<T
>(t)); },
37 [](int64_t t) {
return std::optional<T>(
static_cast<T
>(t)); },
38 [](
double t) {
return std::optional<T>(
static_cast<T
>(t)); },
39 [](
const auto&) {
return std::optional<T>(); });
43 if (
id.is<NullValue>()) {
50 [](
const auto&) -> std::optional<std::string> {
return std::nullopt; });
Feature(GeometryType &&geom_)
Feature(const GeoJSONFeature &f)
Feature(const GeometryType &geom_)
mapbox::geometry::geometry< double > GeometryType
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
std::string toString(const CanonicalTileID &)
mapbox::feature::identifier FeatureIdentifier
mapbox::base::NullValue NullValue
std::unordered_map< std::string, FeatureStates > LayerFeatureStates
mapbox::base::Value Value
std::unordered_map< std::string, FeatureState > FeatureStates
mapbox::base::ValueObject FeatureState
mapbox::base::ValueObject PropertyMap
mapbox::feature::feature< double > GeoJSONFeature
std::optional< T > numericValue(const Value &value)
std::optional< std::string > featureIDtoString(const FeatureIdentifier &id)