diff options
Diffstat (limited to 'src/mbgl/style/sources/geojson_source_impl.cpp')
-rw-r--r-- | src/mbgl/style/sources/geojson_source_impl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.cpp b/src/mbgl/style/sources/geojson_source_impl.cpp index 1c1288d978..10fd7cacea 100644 --- a/src/mbgl/style/sources/geojson_source_impl.cpp +++ b/src/mbgl/style/sources/geojson_source_impl.cpp @@ -21,6 +21,20 @@ public: return impl.getTile(tileID.z, tileID.x, tileID.y).features; } + mapbox::feature::feature_collection<double> getChildren(const std::uint32_t) final { + return {}; + } + + mapbox::feature::feature_collection<double> getLeaves(const std::uint32_t, + const std::uint32_t, + const std::uint32_t) final { + return {}; + } + + std::uint8_t getClusterExpansionZoom(std::uint32_t) final { + return 0; + } + private: mapbox::geojsonvt::GeoJSONVT impl; }; @@ -35,6 +49,20 @@ public: return impl.getTile(tileID.z, tileID.x, tileID.y); } + mapbox::feature::feature_collection<double> getChildren(const std::uint32_t cluster_id) final { + return impl.getChildren(cluster_id); + } + + mapbox::feature::feature_collection<double> getLeaves(const std::uint32_t cluster_id, + const std::uint32_t limit, + const std::uint32_t offset) final { + return impl.getLeaves(cluster_id, limit, offset); + } + + std::uint8_t getClusterExpansionZoom(std::uint32_t cluster_id) final { + return impl.getClusterExpansionZoom(cluster_id); + } + private: mapbox::supercluster::Supercluster impl; }; |