Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] xcode keeps yelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkiley committed Aug 28, 2019
1 parent d712fea commit bfb86db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions platform/darwin/src/MGLShapeSource.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, NSString *>().toPropertyValue<mbgl::style::PropertyValue<std::string>>(exp1, true);
auto mbglValue2 = MGLStyleValueTransformer<std::string, NSString *>().toPropertyValue<mbgl::style::PropertyValue<std::string>>(exp2, true);
auto mbglPair = std::make_pair(mbglValue, mbglValue2);

// No viable conversion from 'pair<typename __unwrap_ref_decay<PropertyValue<basic_string<char> > &>::type, typename __unwrap_ref_decay<PropertyValue<basic_string<char> > &>::type>' to 'pair<std::shared_ptr<mbgl::style::expression::Expression>, std::shared_ptr<mbgl::style::expression::Expression>>'
//
// 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 '='
Expand Down

0 comments on commit bfb86db

Please sign in to comment.