summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2018-02-12 13:46:37 -0800
committerjmkiley <jordan.kiley@mapbox.com>2018-02-12 13:46:37 -0800
commit336703e4ee0791077320c73a78ffd115a15cfb20 (patch)
tree87bb521e7e932bcb8237e94e50e607afbd873e91
parent3bdc5e9ebb821ce2faaf2bb3adae76f518a7c180 (diff)
downloadqtlocation-mapboxgl-336703e4ee0791077320c73a78ffd115a15cfb20.tar.gz
[ios] greater than or equal to
-rw-r--r--platform/ios/app/MBXViewController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index 45b6001f99..4ef8d05536 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -1919,14 +1919,14 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) {
[self updateHUD];
// cameraDidChange called once here
- if ([_features count] > _count && _count > 0){
+ if ([_features count] >= _count && _count > 0){
[_features removeObjectAtIndex:0];
_count = [_features count];
MGLShapeCollectionFeature *collection = [MGLShapeCollectionFeature shapeCollectionWithShapes:_features];
_shapeSource.shape = collection;
- } else {
- _shapeSource.shape = nil;
- _count = 0;
+// } else {
+// _shapeSource.shape = nil;
+// _count = 0;
}
}