diff --git a/platform/darwin/src/MGLShapeSource.mm b/platform/darwin/src/MGLShapeSource.mm index 91ecea0a1f1..aa4b958f8ba 100644 --- a/platform/darwin/src/MGLShapeSource.mm +++ b/platform/darwin/src/MGLShapeSource.mm @@ -106,14 +106,19 @@ NSExpression *exp1 = expArray[0]; NSExpression *exp2 = expArray[1]; - // convert values into style expressions + // convert values into style expressions. IDK how to do this, but ¯\_(ツ)_/¯ +// auto mbglValue1 = m + auto mbglValue = MGLStyleValueTransformer().toPropertyValue>(exp1, true); auto mbglValue2 = MGLStyleValueTransformer().toPropertyValue>(exp2, true); - auto mbglPair = std::make_pair(mbglValue, mbglValue2); + + // No viable conversion from 'pair > &>::type, typename __unwrap_ref_decay > &>::type>' to 'pair, std::shared_ptr>' + // +// mbgl::style::GeoJSONOptions::ClusterExpression mbglPair = std::make_pair(mbglValue, mbglValue2); std::string keyString = std::string([key UTF8String]); - clusterMap->emplace(keyString, mbglPair); +// clusterMap->emplace(keyString, mbglPair); } // No viable overloaded '='