diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-08-28 13:05:43 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-09-25 14:28:56 -0700 |
commit | dfaa2ee0ae76f883d2f189eccbef1040214274c2 (patch) | |
tree | 0bcf001827e43a140ef397f25fd7cb129d57a431 | |
parent | 4a6b80c4adf4aefc7c9577455939a68c73ea95a1 (diff) | |
download | qtlocation-mapboxgl-dfaa2ee0ae76f883d2f189eccbef1040214274c2.tar.gz |
[ios] xcode keeps yelling
-rw-r--r-- | platform/darwin/src/MGLShapeSource.mm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLShapeSource.mm b/platform/darwin/src/MGLShapeSource.mm index bfd5eefb38..8e2c2adab1 100644 --- a/platform/darwin/src/MGLShapeSource.mm +++ b/platform/darwin/src/MGLShapeSource.mm @@ -106,14 +106,19 @@ mbgl::style::GeoJSONOptions MGLGeoJSONOptionsFromDictionary(NSDictionary<MGLShap 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 '=' |