summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_source.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2018-11-14 16:30:10 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2018-12-12 15:08:18 +0200
commita1ca06e304a14582a90b258e817ec6f17d72fb11 (patch)
tree43d8d6a499388aa17bd1e182bbaa072cd4e77693 /src/mbgl/renderer/render_source.hpp
parent664ceb43980cb7d90a0d8b5fa1a48f83662322c9 (diff)
downloadqtlocation-mapboxgl-a1ca06e304a14582a90b258e817ec6f17d72fb11.tar.gz
[core] Introduce Renderer::queryFeatureExtension API
New interface allows it's users to query additional information about feature that was provided by qRF interface. This is particularly useful for clustered features.
Diffstat (limited to 'src/mbgl/renderer/render_source.hpp')
-rw-r--r--src/mbgl/renderer/render_source.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_source.hpp b/src/mbgl/renderer/render_source.hpp
index dc80cb1dc6..31c26fd09a 100644
--- a/src/mbgl/renderer/render_source.hpp
+++ b/src/mbgl/renderer/render_source.hpp
@@ -4,6 +4,7 @@
#include <mbgl/tile/tile_observer.hpp>
#include <mbgl/util/mat4.hpp>
#include <mbgl/util/geo.hpp>
+#include <mbgl/util/geojson.hpp>
#include <mbgl/util/feature.hpp>
#include <mbgl/style/source_impl.hpp>
#include <mbgl/style/layer_impl.hpp>
@@ -70,6 +71,14 @@ public:
virtual std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const = 0;
+ virtual FeatureExtensionValue
+ queryFeatureExtensions(const Feature&,
+ const std::string&,
+ const std::string&,
+ const optional<std::map<std::string, Value>>&) const {
+ return {};
+ }
+
virtual void reduceMemoryUse() = 0;
virtual void dumpDebugLogs() const = 0;