#pragma once #include #include namespace mbgl { using Value = mapbox::geometry::value; using NullValue = mapbox::geometry::null_value_t; using PropertyMap = mapbox::geometry::property_map; using FeatureIdentifier = mapbox::geometry::identifier; using Feature = mapbox::geometry::feature; template optional numericValue(const Value& value) { return value.match( [] (uint64_t t) { return optional(t); }, [] (int64_t t) { return optional(t); }, [] (double t) { return optional(t); }, [] (auto) { return optional(); }); } } // namespace mbgl