MLNCircleStyleLayer class

An MLNCircleStyleLayer is a style layer that renders one or more filled circles on the map.

Use a circle style layer to configure the visual appearance of point or point collection features. These features can come from vector tiles loaded by an MLNCircleStyleLayer object, or they can be MLNCircleStyleLayer, MLNCircleStyleLayer, MLNCircleStyleLayer, or MLNCircleStyleLayer instances in an MLNCircleStyleLayer or MLNCircleStyleLayer object.

A circle style layer renders circles whose radii are measured in screen units. To display circles on the map whose radii correspond to real-world distances, use many-sided regular polygons and configure their appearance using an MLNCircleStyleLayer object.

You can access an existing circle style layer using the MLNStyle/layerWithIdentifier: method if you know its identifier; otherwise, find it using the MLNStyle/layers property. You can also create a new circle style layer and add it to the style using a method such as MLNStyle/addLayer:.

See the Data-driven circles, Add multiple shapes from a single shape source, and Cluster point data examples to learn how to add circles to your map using this style layer.

Example

Inheritance

Constructors

MLNCircleStyleLayer()
Returns a new instance of MLNCircleStyleLayer constructed with the default new method.
factory
MLNCircleStyleLayer.castFrom(ObjCObjectBase other)
Constructs a MLNCircleStyleLayer that points to the same underlying object as other.
MLNCircleStyleLayer.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a MLNCircleStyleLayer that wraps the given raw object pointer.

Properties

circleBlur NSExpression
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
getter/setter pair
circleBlurTransition MLNTransition
The transition affecting any changes to this layer’s circleBlur property.
getter/setter pair
circleColor NSExpression
The fill color of the circle.
getter/setter pair
circleColorTransition MLNTransition
The transition affecting any changes to this layer’s circleColor property.
getter/setter pair
circleOpacity NSExpression
The opacity at which the circle will be drawn.
getter/setter pair
circleOpacityTransition MLNTransition
The transition affecting any changes to this layer’s circleOpacity property.
getter/setter pair
circlePitchAlignment NSExpression
Orientation of circle when map is pitched.
getter/setter pair
circlePitchScale NSExpression
circlePitchScale
getter/setter pair
circleRadius NSExpression
Circle radius.
getter/setter pair
circleRadiusTransition MLNTransition
The transition affecting any changes to this layer’s circleRadius property.
getter/setter pair
circleScaleAlignment NSExpression
Controls the scaling behavior of the circle when the map is pitched.
getter/setter pair
circleSortKey NSExpression
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
getter/setter pair
circleStrokeColor NSExpression
The stroke color of the circle.
getter/setter pair
circleStrokeColorTransition MLNTransition
The transition affecting any changes to this layer’s circleStrokeColor property.
getter/setter pair
circleStrokeOpacity NSExpression
The opacity of the circle's stroke.
getter/setter pair
circleStrokeOpacityTransition MLNTransition
The transition affecting any changes to this layer’s circleStrokeOpacity property.
getter/setter pair
circleStrokeWidth NSExpression
The width of the circle's stroke. Strokes are placed outside of the circleRadius.
getter/setter pair
circleStrokeWidthTransition MLNTransition
The transition affecting any changes to this layer’s circleStrokeWidth property.
getter/setter pair
circleTranslate NSExpression
circleTranslate
getter/setter pair
circleTranslateAnchor NSExpression
circleTranslateAnchor
getter/setter pair
circleTranslation NSExpression
The geometry's offset.
getter/setter pair
circleTranslationAnchor NSExpression
Controls the frame of reference for circleTranslation.
getter/setter pair
circleTranslationTransition MLNTransition
The transition affecting any changes to this layer’s circleTranslation property.
getter/setter pair
debugDescription$1 → NSString
debugDescription
no setterinherited
description$1 → NSString
description
no setterinherited
hash$1 int
hash
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier → NSString
A string that uniquely identifies the style layer in the style to which it is added.
no setterinherited
isProxy bool
isProxy
no setterinherited
maximumZoomLevel double
The maximum zoom level at which the layer gets parsed and appears. This value is a floating-point number.
getter/setter pairinherited
minimumZoomLevel double
The minimum zoom level at which the layer gets parsed and appears. This value is a floating-point number.
getter/setter pairinherited
predicate NSPredicate?
The style layer’s predicate.
getter/setter pairinherited
ref → ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceIdentifier → NSString?
Identifier of the source from which the receiver obtains the data to style.
no setterinherited
sourceLayerIdentifier ↔ NSString?
Identifier of the layer within the source identified by the sourceIdentifier property from which the receiver obtains the data to style.
getter/setter pairinherited
superclass$1 → ObjCObjectBase
superclass
no setterinherited
visible bool
Whether this layer is displayed. A value of NO hides the layer.
getter/setter pairinherited

Methods

autorelease() MLNCircleStyleLayer
autorelease
override
class$1() → ObjCObjectBase
class
inherited
conformsToProtocol$1(Protocol aProtocol) bool
conformsToProtocol:
inherited
copy() → ObjCObjectBase
copy
inherited
dealloc() → void
dealloc
inherited
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void
doesNotRecognizeSelector:
inherited
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) → ObjCObjectBase
forwardingTargetForSelector:
inherited
forwardInvocation(NSInvocation anInvocation) → void
forwardInvocation:
inherited
init() MLNCircleStyleLayer
init
override
initWithIdentifier(NSString identifier, {required MLNSource source}) MLNCircleStyleLayer
Returns a circle style layer initialized with an identifier and source.
isEqual(ObjCObjectBase object) bool
isEqual:
inherited
isKindOfClass(ObjCObjectBase aClass) bool
isKindOfClass:
inherited
isMemberOfClass(ObjCObjectBase aClass) bool
isMemberOfClass:
inherited
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>
methodForSelector:
inherited
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) → NSMethodSignature
methodSignatureForSelector:
inherited
mutableCopy() → ObjCObjectBase
mutableCopy
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSelector(Pointer<ObjCSelector> aSelector) → ObjCObjectBase
performSelector:
inherited
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject}) → ObjCObjectBase
performSelector:withObject:
inherited
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) → ObjCObjectBase
performSelector:withObject:withObject:
inherited
release() → void
release
inherited
respondsToSelector(Pointer<ObjCSelector> aSelector) bool
respondsToSelector:
inherited
retain() MLNCircleStyleLayer
retain
override
retainCount() int
retainCount
inherited
self$1() MLNCircleStyleLayer
self
override
toString() String
A string representation of this object.
inherited
zone() Pointer<NSZone>
zone
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() MLNCircleStyleLayer
alloc
override
allocWithZone(Pointer<NSZone> zone) MLNCircleStyleLayer
allocWithZone:
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNCircleStyleLayer.
override
new$() MLNCircleStyleLayer
new
override