diff options
author | Jason Wray <jason@mapbox.com> | 2018-04-09 17:00:45 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2018-04-12 16:49:30 -0400 |
commit | be3fc4413ab2e553c7957721bc3a7a03d414cd64 (patch) | |
tree | ee21b2aab68800c5b8baf091d08246a3f141677c /platform/ios/src | |
parent | 352d63d2ce98286cd854b11e85d66440501a6fd0 (diff) | |
download | qtlocation-mapboxgl-be3fc4413ab2e553c7957721bc3a7a03d414cd64.tar.gz |
[ios] Change MGLAnnotationView.scalesWithViewingDistance default value to NOupstream/fb-undefault-scalesWithViewingDistance
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLAnnotationView.h | 8 | ||||
-rw-r--r-- | platform/ios/src/MGLAnnotationView.mm | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/platform/ios/src/MGLAnnotationView.h b/platform/ios/src/MGLAnnotationView.h index 8006ec3e40..57d97e56c1 100644 --- a/platform/ios/src/MGLAnnotationView.h +++ b/platform/ios/src/MGLAnnotationView.h @@ -169,12 +169,12 @@ MGL_EXPORT value of this property is `NO` or the map’s pitch is zero, the annotation view remains the same size regardless of its position on-screen. - The default value of this property is `YES`. Set this property to `NO` if the - view’s legibility is important. + The default value of this property is `NO`. Keep this property set to `NO` if + the view’s legibility is important. @note Scaling many on-screen annotation views can contribute to poor map - performance. Consider disabling this property if your use case involves - hundreds or thousands of annotation views. + performance. Consider keeping this property disabled if your use case + involves hundreds or thousands of annotation views. */ @property (nonatomic, assign) BOOL scalesWithViewingDistance; diff --git a/platform/ios/src/MGLAnnotationView.mm b/platform/ios/src/MGLAnnotationView.mm index 4585479582..1c53ba507a 100644 --- a/platform/ios/src/MGLAnnotationView.mm +++ b/platform/ios/src/MGLAnnotationView.mm @@ -45,7 +45,7 @@ _lastAppliedScaleTransform = CATransform3DIdentity; _annotation = annotation; _reuseIdentifier = [reuseIdentifier copy]; - _scalesWithViewingDistance = YES; + _scalesWithViewingDistance = NO; _enabled = YES; } |