MGLCircleStyleLayer

@interface MGLCircleStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

A circle layer which allows customization of styling properties at runtime. You may instantiate a new circle layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

  • A predicate that corresponds to the layer’s filter.

    The predicate’s left expression must be a string that identifies a feature property, or one of the special keys.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSPredicate *predicate;

    Swift

    var predicate: NSPredicate? { get set }
  • Circle radius.

    This property is measured in points.

    The default value of this property is an NSNumber object containing the float 5. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleRadius;

    Swift

    var circleRadius: MGLStyleAttributeValue! { get set }
  • The fill color of the circle.

    The default value of this property is UIColor.blackColor. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleColor;

    Swift

    var circleColor: MGLStyleAttributeValue! { get set }
  • Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.

    The default value of this property is an NSNumber object containing the float 0. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleBlur;

    Swift

    var circleBlur: MGLStyleAttributeValue! { get set }
  • The opacity at which the circle will be drawn.

    The default value of this property is an NSNumber object containing the float 1. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleOpacity;

    Swift

    var circleOpacity: MGLStyleAttributeValue! { get set }
  • The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.

    This property is measured in points.

    The default value of this property is an NSValue object containing a CGVector struct set to 0 points from the left and 0 points from the top. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleTranslate;

    Swift

    var circleTranslate: MGLStyleAttributeValue! { get set }
  • Controls the translation reference point.

    The default value of this property is an NSValue object containing MGLCircleStyleLayerCircleTranslateAnchorMap. Set this property to nil to reset it to the default value.

    This property is only applied to the style if circleTranslate is non-nil. Otherwise, it is ignored.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circleTranslateAnchor;

    Swift

    var circleTranslateAnchor: MGLStyleAttributeValue! { get set }
  • Controls the scaling behavior of the circle when the map is pitched.

    The default value of this property is an NSValue object containing MGLCircleStyleLayerCirclePitchScaleMap. Set this property to nil to reset it to the default value.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        id<MGLStyleAttributeValue>
            circlePitchScale;

    Swift

    var circlePitchScale: MGLStyleAttributeValue! { get set }