summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-08-22 15:55:37 +0200
committerJulian Rex <julian.rex@mapbox.com>2019-01-12 14:36:50 -0500
commit9e19405afb6f6c68d08cbecaded752f40a7c0c02 (patch)
treedd68cb3f6e7dba6118102d4701d2915973ddd225 /include
parent4db55c3ace71fcc07c3ba4de99d411bf59d46397 (diff)
downloadqtlocation-mapboxgl-9e19405afb6f6c68d08cbecaded752f40a7c0c02.tar.gz
[core] - expose getChildren, getLeaves, getClusterExpansionZoom on SuperclusterData
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/sources/geojson_source.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp
index a03b910279..36cc9bb4bb 100644
--- a/include/mbgl/style/sources/geojson_source.hpp
+++ b/include/mbgl/style/sources/geojson_source.hpp
@@ -33,9 +33,12 @@ public:
void setURL(const std::string& url);
void setGeoJSON(const GeoJSON&);
-
optional<std::string> getURL() const;
+ mapbox::geometry::feature_collection<double> getChildren(const std::uint32_t) const;
+ mapbox::geometry::feature_collection<double> getLeaves(const std::uint32_t, const std::uint32_t, const std::uint32_t) const;
+ std::uint8_t getClusterExpansionZoom(std::uint32_t) const;
+
class Impl;
const Impl& impl() const;