MGLCircleStyleLayer
@interface MGLCircleStyleLayer : MGLVectorStyleLayer
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.
-
Circle radius.
This property is measured in points.
The default value of this property is an
MGLStyleValue
object containing anNSNumber
object containing the float5
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<NSNumber *> *circleRadius;
Swift
var circleRadius: MGLStyleValue
-
The fill color of the circle.
The default value of this property is an
MGLStyleValue
object containingUIColor.blackColor
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<UIColor *> *circleColor;
Swift
var circleColor: MGLStyleValue
-
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
MGLStyleValue
object containing anNSNumber
object containing the float0
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<NSNumber *> *circleBlur;
Swift
var circleBlur: MGLStyleValue
-
The opacity at which the circle will be drawn.
The default value of this property is an
MGLStyleValue
object containing anNSNumber
object containing the float1
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<NSNumber *> *circleOpacity;
Swift
var circleOpacity: MGLStyleValue
-
The geometry’s offset.
This property is measured in points.
The default value of this property is an
MGLStyleValue
object containing anNSValue
object containing aCGVector
struct set to 0 points from the left and 0 points from the top. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<NSValue *> *circleTranslate;
Swift
var circleTranslate: MGLStyleValue
-
Controls the translation reference point.
The default value of this property is an
MGLStyleValue
object containing anNSValue
object containingMGLCircleTranslateAnchorMap
. Set this property tonil
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) MGLStyleValue<NSValue *> *circleTranslateAnchor;
Swift
var circleTranslateAnchor: MGLStyleValue
-
Controls the scaling behavior of the circle when the map is pitched.
The default value of this property is an
MGLStyleValue
object containing anNSValue
object containingMGLCirclePitchScaleMap
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) MGLStyleValue<NSValue *> *circlePitchScale;
Swift
var circlePitchScale: MGLStyleValue