diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2018-02-12 13:46:37 -0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2018-02-12 13:46:37 -0800 |
commit | 336703e4ee0791077320c73a78ffd115a15cfb20 (patch) | |
tree | 87bb521e7e932bcb8237e94e50e607afbd873e91 | |
parent | 3bdc5e9ebb821ce2faaf2bb3adae76f518a7c180 (diff) | |
download | qtlocation-mapboxgl-336703e4ee0791077320c73a78ffd115a15cfb20.tar.gz |
[ios] greater than or equal to
-rw-r--r-- | platform/ios/app/MBXViewController.m | 8 |
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; } } |