diff options
Diffstat (limited to 'platform/darwin/src')
-rw-r--r-- | platform/darwin/src/MGLStyle.h | 2 | ||||
-rw-r--r-- | platform/darwin/src/MGLStyle.mm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h index 547b7ccee5..4972524c95 100644 --- a/platform/darwin/src/MGLStyle.h +++ b/platform/darwin/src/MGLStyle.h @@ -275,7 +275,7 @@ MGL_EXPORT The default value of this property is `YES`. */ -@property (nonatomic, assign) BOOL enablePlacementTransitions; +@property (nonatomic, assign) BOOL performsPlacementTransitions; /** Returns a source with the given identifier in the current style. diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm index 82fed5e922..5768a7aaa7 100644 --- a/platform/darwin/src/MGLStyle.mm +++ b/platform/darwin/src/MGLStyle.mm @@ -534,14 +534,14 @@ static_assert(6 == mbgl::util::default_styles::numOrderedStyles, return MGLTransitionFromOptions(transitionOptions); } -- (void)setEnablePlacementTransitions:(BOOL)enablePlacementTransitions +- (void)setPerformsPlacementTransitions:(BOOL)performsPlacementTransitions { mbgl::style::TransitionOptions transitionOptions = self.rawStyle->getTransitionOptions(); - transitionOptions.enablePlacementTransitions = static_cast<bool>(enablePlacementTransitions); + transitionOptions.enablePlacementTransitions = static_cast<bool>(performsPlacementTransitions); self.rawStyle->setTransitionOptions(transitionOptions); } -- (BOOL)enablePlacementTransitions +- (BOOL)performsPlacementTransitions { mbgl::style::TransitionOptions transitionOptions = self.rawStyle->getTransitionOptions(); return transitionOptions.enablePlacementTransitions; |