summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2019-10-11 13:46:41 -0700
committerGitHub <noreply@github.com>2019-10-11 13:46:41 -0700
commite4e2a78033f25fd966fa9cbbd2babb7e7b499e18 (patch)
tree6de20c867cab7e548d9cb5bfc46a0e74e63dc2bb /src
parenta1f124c39442d76af77a5aa63bba5afa4f4d6d26 (diff)
downloadqtlocation-mapboxgl-e4e2a78033f25fd966fa9cbbd2babb7e7b499e18.tar.gz
Add iOS bindings for cluster properties (#15515)
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.cpp b/src/mbgl/style/sources/geojson_source_impl.cpp
index c3cb942709..8067b1ab1d 100644
--- a/src/mbgl/style/sources/geojson_source_impl.cpp
+++ b/src/mbgl/style/sources/geojson_source_impl.cpp
@@ -99,6 +99,7 @@ GeoJSONSource::Impl::Impl(const Impl& other, const GeoJSON& geoJSON)
Feature feature;
clusterOptions.map = [&](const PropertyMap& properties) -> PropertyMap {
PropertyMap ret{};
+ if (properties.empty()) return ret;
for (const auto& p : options.clusterProperties) {
feature.properties = properties;
ret[p.first] = evaluateFeature<Value>(feature, p.second.first);