diff options
author | Jordan Kiley <jmkiley@users.noreply.github.com> | 2018-02-23 22:19:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 22:19:51 -0800 |
commit | db0f6377fc58b08e8cf9d965aabe5c52d243778c (patch) | |
tree | 9c08437a8e5ef2ece01826ff2fc9c99d4848b9a5 | |
parent | 8e1fc8ff384cc7dd19707ba5168603c171d14571 (diff) | |
download | qtlocation-mapboxgl-db0f6377fc58b08e8cf9d965aabe5c52d243778c.tar.gz |
Fixed DDS polygon example (#11286)
* [ios] Updated expression
* [ios] Removed centering code
-rw-r--r-- | platform/ios/app/MBXViewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 7c8e9fe570..3d0abf0a24 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -1429,7 +1429,7 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { // source, categorical function that sets any feature with a "fill" attribute value of true to red color and anything without to green MGLFillStyleLayer *fillStyleLayer = [[MGLFillStyleLayer alloc] initWithIdentifier:@"fill-layer" source:shapeSource]; - fillStyleLayer.fillColor = [NSExpression expressionWithFormat:@"TERNARY(fill, %@, %@)", [UIColor greenColor], [UIColor redColor]]; + fillStyleLayer.fillColor = [NSExpression expressionWithFormat:@"TERNARY(fill == YES, %@, %@)", [UIColor greenColor], [UIColor redColor]]; // source, identity function that sets any feature with an "opacity" attribute to use that value and anything without to 1.0 fillStyleLayer.fillOpacity = [NSExpression expressionWithFormat:@"TERNARY(opacity != nil, opacity, 1.0)"]; |