diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-17 13:21:19 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-18 17:29:16 -0700 |
commit | 5864c8fc4cc0e42b2c13f57845492ac20f6980dd (patch) | |
tree | d5b20a57cad4d18d7b165f8ca43652417fc0c792 /src/mbgl/tile/geometry_tile.hpp | |
parent | 1b1df9e354f6a26d1410627c1c4c57ea8e7a00af (diff) | |
download | qtlocation-mapboxgl-5864c8fc4cc0e42b2c13f57845492ac20f6980dd.tar.gz |
[core] Include geometry in queryRenderedFeatures results
Diffstat (limited to 'src/mbgl/tile/geometry_tile.hpp')
-rw-r--r-- | src/mbgl/tile/geometry_tile.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/tile/geometry_tile.hpp b/src/mbgl/tile/geometry_tile.hpp index edbe91b6c9..d98e1b3b0c 100644 --- a/src/mbgl/tile/geometry_tile.hpp +++ b/src/mbgl/tile/geometry_tile.hpp @@ -25,6 +25,8 @@ enum class FeatureType : uint8_t { Polygon = 3 }; +class CanonicalTileID; + // Normalized vector tile coordinates. // Each geometry coordinate represents a point in a bidimensional space, // varying from -V...0...+V, where V is the maximum extent applicable. @@ -90,6 +92,9 @@ public: // classifies an array of rings into polygons with outer rings and holes std::vector<GeometryCollection> classifyRings(const GeometryCollection&); +// convert from GeometryTileFeature to Feature (eventually we should eliminate GeometryTileFeature) +Feature convertFeature(const GeometryTileFeature&, const CanonicalTileID&); + } // namespace mbgl #endif |