[ios, macos] Deprecate style class API (#7785)
This commit is contained in:
committed by
Jason Wray
parent
85f485e4ed
commit
8ac9975941
@@ -361,7 +361,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
/**
|
||||
Currently active style classes, represented as an array of string identifiers.
|
||||
*/
|
||||
@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses;
|
||||
@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses __attribute__((deprecated("This property will be removed in a future release.")));
|
||||
|
||||
/**
|
||||
Returns a Boolean value indicating whether the style class with the given
|
||||
@@ -370,14 +370,14 @@ static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
@param styleClass The style class to query for.
|
||||
@return Whether the style class is currently active.
|
||||
*/
|
||||
- (BOOL)hasStyleClass:(NSString *)styleClass;
|
||||
- (BOOL)hasStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release.")));
|
||||
|
||||
/**
|
||||
Activates the style class with the given identifier.
|
||||
|
||||
@param styleClass The style class to activate.
|
||||
*/
|
||||
- (void)addStyleClass:(NSString *)styleClass;
|
||||
- (void)addStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release.")));
|
||||
|
||||
/**
|
||||
Deactivates the style class with the given identifier.
|
||||
@@ -392,7 +392,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
|
||||
@param styleClass The style class to deactivate.
|
||||
*/
|
||||
- (void)removeStyleClass:(NSString *)styleClass;
|
||||
- (void)removeStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release.")));
|
||||
|
||||
#pragma mark Managing a Style’s Images
|
||||
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
|
||||
Mapbox welcomes participation and contributions from everyone. Please read [CONTRIBUTING.md](../../CONTRIBUTING.md) to get started.
|
||||
|
||||
## 3.4.1
|
||||
## 3.4.1
|
||||
|
||||
* Fixed a build error in the static framework flavor of this SDK caused by a missing header. ([#7844](https://github.com/mapbox/mapbox-gl-native/pull/7844))
|
||||
* Fixed an issue causing MGLMapView’s `camera`’s `heading` to be set to a negative value, indicating an undefined heading, when the map view faces northwest. The heading is now wrapped to between zero and 360 degrees, for consistency with MGLMapView’s `direction` property. ([#7724](https://github.com/mapbox/mapbox-gl-native/pull/7724))
|
||||
* Fixed an issue causing MGLMapView flash of black. ([#7859](https://github.com/mapbox/mapbox-gl-native/pull/7859))
|
||||
* Style class methods in `MGLStyle` marked as deprecated. ([#7785](https://github.com/mapbox/mapbox-gl-native/pull/7785))
|
||||
|
||||
## 3.4.0
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ This version of the Mapbox macOS SDK corresponds to version 3.4.1 of the Mapbox
|
||||
|
||||
* Fixed an issue causing MGLMapView’s `camera`’s `heading` to be set to a negative value, indicating an undefined heading, when the map view faces northwest. The heading is now wrapped to between zero and 360 degrees, for consistency with MGLMapView’s `direction` property. ([#7724](https://github.com/mapbox/mapbox-gl-native/pull/7724))
|
||||
* Fixed an issue causing the mouse cursor to jump after shift- or option-dragging a map view if the window opened on a screen with a different size than the screen with keyboard focus. ([#7846](https://github.com/mapbox/mapbox-gl-native/pull/7846))
|
||||
* Style class methods in `MGLStyle` marked as deprecated. ([#7785](https://github.com/mapbox/mapbox-gl-native/pull/7785))
|
||||
|
||||
## 0.3.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user