diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-29 18:28:34 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-03 17:25:49 -0700 |
commit | c8391729c7af8edc142f0319ccffe2720cfb6c18 (patch) | |
tree | 7159629cb4f8c9b86ba39dd8c79b87e8f5cb432d /include/mbgl/util/feature.hpp | |
parent | 01b3eac52f810b61dc2d5f0ea7a2bfa229daa01f (diff) | |
download | qtlocation-mapboxgl-c8391729c7af8edc142f0319ccffe2720cfb6c18.tar.gz |
[core] Use geometry.hpp feature type
Diffstat (limited to 'include/mbgl/util/feature.hpp')
-rw-r--r-- | include/mbgl/util/feature.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mbgl/util/feature.hpp b/include/mbgl/util/feature.hpp new file mode 100644 index 0000000000..c9dbc31769 --- /dev/null +++ b/include/mbgl/util/feature.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include <mbgl/util/optional.hpp> + +#include <mapbox/geometry/feature.hpp> + +namespace mbgl { + +using Value = mapbox::geometry::value; + +class Feature : public mapbox::geometry::feature<double> { +public: + Feature(geometry_type&& geometry_) + : mapbox::geometry::feature<double> { std::move(geometry_) } {} + + optional<Value> id {}; +}; + +} // namespace mbgl |