summaryrefslogtreecommitdiff
path: root/include/mbgl/util
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 /include/mbgl/util
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 'include/mbgl/util')
-rw-r--r--include/mbgl/util/geojson.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/geojson.hpp b/include/mbgl/util/geojson.hpp
index b4e789a3ac..2a6569be49 100644
--- a/include/mbgl/util/geojson.hpp
+++ b/include/mbgl/util/geojson.hpp
@@ -1,10 +1,12 @@
#pragma once
#include <mapbox/geojson.hpp>
+#include <mbgl/util/feature.hpp>
namespace mbgl {
using GeoJSON = mapbox::geojson::geojson;
using FeatureCollection = mapbox::geojson::feature_collection;
+using FeatureExtensionValue = mapbox::util::variant<Value, FeatureCollection>;
} // namespace mbgl