MGLBaseStyleLayer

@interface MGLBaseStyleLayer : NSObject

The base style layer class from which all other style layer classes inherit. Style layers allow runtime customization of all map styling properties.

You should use the concrete subclasses of MGLBaseStyleLayer (which conform to MGLStyleLayer) to style fill, line, symbol, and other layer types.

  • Whether this layer is displayed. A value of NO hides the layer.

    Declaration

    Objective-C

    @property (getter=isVisible, assign, readwrite, nonatomic) BOOL visible;

    Swift

    var isVisible: Bool { get set }
  • The maximum zoom level at which the layer gets parsed and appears.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float maximumZoomLevel;

    Swift

    var maximumZoomLevel: Float { get set }
  • The minimum zoom level at which the layer gets parsed and appears.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float minimumZoomLevel;

    Swift

    var minimumZoomLevel: Float { get set }