MLNFillExtrusionStyleLayer class

An MLNFillExtrusionStyleLayer is a style layer that renders one or more 3D extruded polygons on the map.

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

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

See the Display 3D buildings example to learn how to add and style 3D layers on a map.

Example

Inheritance

Constructors

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

Properties

debugDescription$1 → NSString
debugDescription
no setterinherited
description$1 → NSString
description
no setterinherited
fillExtrusionBase NSExpression
The height with which to extrude the base of this layer. Must be less than or equal to fillExtrusionHeight.
getter/setter pair
fillExtrusionBaseTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionBase property.
getter/setter pair
fillExtrusionColor NSExpression
The base color of this layer. The extrusion's surfaces will be shaded differently based on this color in combination with the light settings. If this color is specified with an alpha component, the alpha component will be ignored; use fillExtrusionOpacity to set layer opacityco.
getter/setter pair
fillExtrusionColorTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionColor property.
getter/setter pair
fillExtrusionHasVerticalGradient NSExpression
Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
getter/setter pair
fillExtrusionHeight NSExpression
The height with which to extrude this layer.
getter/setter pair
fillExtrusionHeightTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionHeight property.
getter/setter pair
fillExtrusionOpacity NSExpression
The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.
getter/setter pair
fillExtrusionOpacityTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionOpacity property.
getter/setter pair
fillExtrusionPattern NSExpression
Name of image in style images to use for drawing image fill-extrusions. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
getter/setter pair
fillExtrusionPatternTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionPattern property.
getter/setter pair
fillExtrusionTranslate NSExpression
fillExtrusionTranslate
getter/setter pair
fillExtrusionTranslateAnchor NSExpression
fillExtrusionTranslateAnchor
getter/setter pair
fillExtrusionTranslation NSExpression
The geometry's offset.
getter/setter pair
fillExtrusionTranslationAnchor NSExpression
Controls the frame of reference for fillExtrusionTranslation.
getter/setter pair
fillExtrusionTranslationTransition MLNTransition
The transition affecting any changes to this layer’s fillExtrusionTranslation property.
getter/setter pair
fillExtrusionVerticalGradient NSExpression
fillExtrusionVerticalGradient
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() MLNFillExtrusionStyleLayer
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() MLNFillExtrusionStyleLayer
init
override
initWithIdentifier(NSString identifier, {required MLNSource source}) MLNFillExtrusionStyleLayer
Returns a fill-extrusion 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() MLNFillExtrusionStyleLayer
retain
override
retainCount() int
retainCount
inherited
self$1() MLNFillExtrusionStyleLayer
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() MLNFillExtrusionStyleLayer
alloc
override
allocWithZone(Pointer<NSZone> zone) MLNFillExtrusionStyleLayer
allocWithZone:
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNFillExtrusionStyleLayer.
override
new$() MLNFillExtrusionStyleLayer
new
override