summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2018-06-19 16:53:10 -0700
committerGitHub <noreply@github.com>2018-06-19 16:53:10 -0700
commit673144786b11855fe8c9258bc614648061d90298 (patch)
tree7540fbd7eacc518788abe5dc064a920d7ee48ba9
parent325ad2f711d038876c0180ac1022c265521e9578 (diff)
downloadqtlocation-mapboxgl-673144786b11855fe8c9258bc614648061d90298.tar.gz
[ios] updated predicates (#12178)
-rw-r--r--platform/ios/app/MBXViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index 163a379675..167f07d296 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -928,7 +928,7 @@ CLLocationCoordinate2D randomWorldCoordinate() {
MGLFillExtrusionStyleLayer* layer = [[MGLFillExtrusionStyleLayer alloc] initWithIdentifier:@"extrudedBuildings" source:source];
layer.sourceLayerIdentifier = @"building";
- layer.predicate = [NSPredicate predicateWithFormat:@"extrude == 'true' AND height > 0"];
+ layer.predicate = [NSPredicate predicateWithFormat:@"extrude == 'true' AND CAST(height, 'NSNumber') > 0"];
layer.fillExtrusionBase = [NSExpression expressionForKeyPath:@"min_height"];
layer.fillExtrusionHeight = [NSExpression expressionForKeyPath:@"height"];
@@ -1110,7 +1110,7 @@ CLLocationCoordinate2D randomWorldCoordinate() {
MGLFillStyleLayer *regionsLayer = (MGLFillStyleLayer *)[self.mapView.style layerWithIdentifier:@"regions"];
// filter (testing both inline and format strings)
- regionsLayer.predicate = [NSPredicate predicateWithFormat:@"HRRNUM >= %@ AND HRRNUM < 300", @(200)];
+ regionsLayer.predicate = [NSPredicate predicateWithFormat:@"CAST(HRRNUM, 'NSNumber') >= %@ AND CAST(HRRNUM, 'NSNumber') < 300", @(200)];
// paint properties
regionsLayer.fillColor = [NSExpression expressionForConstantValue:[UIColor blueColor]];