summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-04-23 16:05:14 -0400
committerJason Wray <jason@mapbox.com>2018-04-23 16:05:19 -0400
commitfa6c6a3733323e855c1b825c9546093200cf0d62 (patch)
tree688dea78716037ae7545510b7af6c43836bc98af
parent5712b4908007f38265a4b744cefe72de27f5e9a7 (diff)
downloadqtlocation-mapboxgl-fa6c6a3733323e855c1b825c9546093200cf0d62.tar.gz
[ios] Mark -metersPerPixelAtLatitude: as unavailableupstream/fb-metersPerPixelAtLatitude-unavailable
This deprecated method has its implementation removed in 4.0.0 but was not marked as unavailable.
-rw-r--r--platform/ios/CHANGELOG.md4
-rw-r--r--platform/ios/src/MGLMapView.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md
index 4c69d94ec4..7ec4b4633f 100644
--- a/platform/ios/CHANGELOG.md
+++ b/platform/ios/CHANGELOG.md
@@ -8,6 +8,10 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
* Deprecated `+[NSExpression featurePropertiesVariableExpression]` use `+[NSExpression featureAttributesVariableExpression]` instead. ([#11748](https://github.com/mapbox/mapbox-gl-native/pull/11748))
+### Other
+
+* Fixed an issue where `-[MGLMapView metersPerPixelAtLatitude:]` was removed, but not marked as unavailable. ([#11765](https://github.com/mapbox/mapbox-gl-native/pull/11765))
+
## 4.0.0 - April 19, 2018
The 4.0._x_ series of releases will be the last to support iOS 8. The minimum iOS deployment version will increase to iOS 9.0 in a future release.
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 765f0f932b..020dc5e830 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -1065,7 +1065,7 @@ MGL_EXPORT IB_DESIGNABLE
*/
- (CLLocationDistance)metersPerPointAtLatitude:(CLLocationDegrees)latitude;
-- (CLLocationDistance)metersPerPixelAtLatitude:(CLLocationDegrees)latitude __attribute__((deprecated("Use -metersPerPointAtLatitude:.")));
+- (CLLocationDistance)metersPerPixelAtLatitude:(CLLocationDegrees)latitude __attribute__((unavailable("Use -metersPerPointAtLatitude:.")));
#pragma mark Annotating the Map