summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleLayer.mm
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-11-08 13:32:58 -0800
committerGitHub <noreply@github.com>2016-11-08 13:32:58 -0800
commit5e65d8109a3716ef028a33a755be5ed2bf0e6959 (patch)
tree69a7d395f8436fcb1d9c9b45a80c3a6cb6258775 /platform/darwin/src/MGLStyleLayer.mm
parent373904e822bfb13acc8015987497d43507eb5b2a (diff)
downloadqtlocation-mapboxgl-5e65d8109a3716ef028a33a755be5ed2bf0e6959.tar.gz
[ios, macos] Use the rawLayer pointer to access the mbgl layer (#6966)
A previous refactor neglected to remove the unused `layer` property. This removes that property and uses the rawLayer property that actually points to the mbgl layer.
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.mm')
-rw-r--r--platform/darwin/src/MGLStyleLayer.mm14
1 files changed, 6 insertions, 8 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.mm b/platform/darwin/src/MGLStyleLayer.mm
index 293aa54f30..7f29041f80 100644
--- a/platform/darwin/src/MGLStyleLayer.mm
+++ b/platform/darwin/src/MGLStyleLayer.mm
@@ -5,8 +5,6 @@
@interface MGLStyleLayer ()
-@property (nonatomic) mbgl::style::Layer *layer;
-
@end
@implementation MGLStyleLayer
@@ -24,33 +22,33 @@
mbgl::style::VisibilityType v = visible
? mbgl::style::VisibilityType::Visible
: mbgl::style::VisibilityType::None;
- self.layer->setVisibility(v);
+ self.rawLayer->setVisibility(v);
}
- (BOOL)isVisible
{
- mbgl::style::VisibilityType v = self.layer->getVisibility();
+ mbgl::style::VisibilityType v = self.rawLayer->getVisibility();
return (v == mbgl::style::VisibilityType::Visible);
}
- (void)setMaximumZoomLevel:(float)maximumZoomLevel
{
- self.layer->setMaxZoom(maximumZoomLevel);
+ self.rawLayer->setMaxZoom(maximumZoomLevel);
}
- (float)maximumZoomLevel
{
- return self.layer->getMaxZoom();
+ return self.rawLayer->getMaxZoom();
}
- (void)setMinimumZoomLevel:(float)minimumZoomLevel
{
- self.layer->setMinZoom(minimumZoomLevel);
+ self.rawLayer->setMinZoom(minimumZoomLevel);
}
- (float)minimumZoomLevel
{
- return self.layer->getMinZoom();
+ return self.rawLayer->getMinZoom();
}
@end