Add iOS bindings for cluster properties (#15515)

This commit is contained in:
Jordan Kiley
2019-10-11 13:46:41 -07:00
committed by GitHub
parent a1f124c394
commit e4e2a78033
11 changed files with 244 additions and 8 deletions

View File

@@ -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);