MLNFillStyleLayer class

An MLNFillStyleLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.

Use a fill style layer to configure the visual appearance of polygon or multipolygon features. These features can come from vector tiles loaded by an MLNFillStyleLayer object, or they can be MLNFillStyleLayer, MLNFillStyleLayer, MLNFillStyleLayer, or MLNFillStyleLayer instances in an MLNFillStyleLayer or MLNFillStyleLayer object.

You can access an existing fill 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 fill style layer and add it to the style using a method such as MLNStyle/addLayer:.

See the Select a feature within a layer example to learn how to use a TERNARY expression to modify the fillOpacity of an MLNFillStyleLayer object. See the Add a pattern to a polygon example to learn how to use an image to add pattern to the features styled by a MLNFillStyleLayer.

Example

Inheritance

Constructors

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

Properties

debugDescription$1 → NSString
debugDescription
no setterinherited
description$1 → NSString
description
no setterinherited
fillAntialias NSExpression
fillAntialias
getter/setter pair
fillAntialiased NSExpression
Whether or not the fill should be antialiased.
getter/setter pair
fillColor NSExpression
The color of the filled part of this layer.
getter/setter pair
fillColorTransition MLNTransition
The transition affecting any changes to this layer’s fillColor property.
getter/setter pair
fillOpacity NSExpression
The opacity of the entire fill layer. In contrast to the fillColor, this value will also affect the 1pt stroke around the fill, if the stroke is used.
getter/setter pair
fillOpacityTransition MLNTransition
The transition affecting any changes to this layer’s fillOpacity property.
getter/setter pair
fillOutlineColor NSExpression
The outline color of the fill. Matches the value of fillColor if unspecified.
getter/setter pair
fillOutlineColorTransition MLNTransition
The transition affecting any changes to this layer’s fillOutlineColor property.
getter/setter pair
fillPattern NSExpression
Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
getter/setter pair
fillPatternTransition MLNTransition
The transition affecting any changes to this layer’s fillPattern property.
getter/setter pair
fillSortKey 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
fillTranslate NSExpression
fillTranslate
getter/setter pair
fillTranslateAnchor NSExpression
fillTranslateAnchor
getter/setter pair
fillTranslation NSExpression
The geometry's offset.
getter/setter pair
fillTranslationAnchor NSExpression
Controls the frame of reference for fillTranslation.
getter/setter pair
fillTranslationTransition MLNTransition
The transition affecting any changes to this layer’s fillTranslation property.
getter/setter pair
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() MLNFillStyleLayer
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() MLNFillStyleLayer
init
override
initWithIdentifier(NSString identifier, {required MLNSource source}) MLNFillStyleLayer
Returns a fill 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() MLNFillStyleLayer
retain
override
retainCount() int
retainCount
inherited
self$1() MLNFillStyleLayer
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() MLNFillStyleLayer
alloc
override
allocWithZone(Pointer<NSZone> zone) MLNFillStyleLayer
allocWithZone:
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNFillStyleLayer.
override
new$() MLNFillStyleLayer
new
override