diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-09-03 12:04:06 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-09-25 14:28:56 -0700 |
commit | 0c648b841d9cb15e520bb961043701f19fe5112a (patch) | |
tree | a4d9b059ac16f9bd8f32df295fe17d5176b1e4ab | |
parent | dfaa2ee0ae76f883d2f189eccbef1040214274c2 (diff) | |
download | qtlocation-mapboxgl-0c648b841d9cb15e520bb961043701f19fe5112a.tar.gz |
[ios] trying to assign a PropertyExpression, but failing
-rw-r--r-- | platform/darwin/src/MGLShapeSource.mm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLShapeSource.mm b/platform/darwin/src/MGLShapeSource.mm index 8e2c2adab1..8a45c7a8f6 100644 --- a/platform/darwin/src/MGLShapeSource.mm +++ b/platform/darwin/src/MGLShapeSource.mm @@ -108,13 +108,16 @@ mbgl::style::GeoJSONOptions MGLGeoJSONOptionsFromDictionary(NSDictionary<MGLShap NSExpression *exp2 = expArray[1]; // convert values into style expressions. IDK how to do this, but ¯\_(ツ)_/¯ // auto mbglValue1 = m + id jsonObject1 = exp1.mgl_jsonExpressionObject; +// auto mbglValue = MGLSt auto mbglValue = MGLStyleValueTransformer<std::string, NSString *>().toPropertyValue<mbgl::style::PropertyValue<std::string>>(exp1, true); + const mbgl::style::expression::Expression *mbglValue3 = &mbglValue.PropertyValue::asExpression().getExpression(); auto mbglValue2 = MGLStyleValueTransformer<std::string, NSString *>().toPropertyValue<mbgl::style::PropertyValue<std::string>>(exp2, true); - - // 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); + const mbgl::style::expression::Expression *mbgl4 = &mbglValue2.PropertyValue::asExpression().getExpression(); +// 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(mbglValue3, mbgl4); std::string keyString = std::string([key UTF8String]); |