diff options
author | Vladimir Agafonkin <agafonkin@gmail.com> | 2016-07-27 20:18:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-27 20:18:41 +0300 |
commit | 9ecc0d95979ca2fa3154f4b47c8f9fa4717fe696 (patch) | |
tree | b5e09683505cec994e3198a92cd8863d54979e3e /src/mbgl/tile/geojson_tile.hpp | |
parent | 6edaf2dc81ab771d1da27c939b19502753aa895f (diff) | |
download | qtlocation-mapboxgl-9ecc0d95979ca2fa3154f4b47c8f9fa4717fe696.tar.gz |
GeoJSON point clustering (#5724)
* add supercluster dependency
* prepare GeoJSONTile for Supercluster
* prepare GeoJSONSource for accepting options
* try removing mbgl::GeoJSON
* fix setGeoJSON types
* add GeoJSONSource getURL
* add geojson to include path
* add Supercluster index in GeoJSONSource
* fix GeoJSONSource getZoomRange
* bring back mbgl::GeoJSON header
* fix tidy warnings hopefully
* try test-suite with enabled cluster test
* fix formatting in clustering-related files
Diffstat (limited to 'src/mbgl/tile/geojson_tile.hpp')
-rw-r--r-- | src/mbgl/tile/geojson_tile.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mbgl/tile/geojson_tile.hpp b/src/mbgl/tile/geojson_tile.hpp index 09fdd1ec9b..422101b767 100644 --- a/src/mbgl/tile/geojson_tile.hpp +++ b/src/mbgl/tile/geojson_tile.hpp @@ -3,9 +3,15 @@ #include <mbgl/tile/geometry_tile.hpp> namespace mapbox { + namespace geojsonvt { class GeoJSONVT; } // namespace geojsonvt + +namespace supercluster { +class Supercluster; +} // namespace supercluster + } // namespace mapbox namespace mbgl { @@ -21,6 +27,11 @@ public: const style::UpdateParameters&, mapbox::geojsonvt::GeoJSONVT&); + GeoJSONTile(const OverscaledTileID&, + std::string sourceID, + const style::UpdateParameters&, + mapbox::supercluster::Supercluster&); + void setNecessity(Necessity) final; }; |