MLNRasterStyleLayer class
An MLNRasterStyleLayer is a style layer that renders georeferenced raster
imagery on the map, especially raster tiles.
Use a raster style layer to configure the color parameters of raster tiles
loaded by an MLNRasterStyleLayer object or raster images loaded by an
MLNRasterStyleLayer object. For example, you could use a raster style layer
to render Mapbox Satellite
imagery, a raster
tile set uploaded to Mapbox Studio, or a raster map authored in TileMill, the classic
Mapbox Editor, or Mapbox Studio Classic.
Raster images may also be used as icons or patterns in a style layer. To
register an image for use as an icon or pattern, use the
MLNStyle/setImage:forName: method. To configure a point annotation’s image,
use the MLNRasterStyleLayer class.
You can access an existing raster 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 raster style layer and add it to the style using a method such as
MLNStyle/addLayer:.
Related examples
See the Add an image and Add raster imagery examples to learn how to add imagery with this style layer.
Example
- Inheritance
-
- Object
- MLNStyleLayer
- MLNForegroundStyleLayer
- MLNRasterStyleLayer
Constructors
- MLNRasterStyleLayer()
-
Returns a new instance of MLNRasterStyleLayer constructed with the default
newmethod.factory - MLNRasterStyleLayer.castFrom(ObjCObjectBase other)
-
Constructs a MLNRasterStyleLayer that points to the same underlying object as
other. -
MLNRasterStyleLayer.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNRasterStyleLayer that wraps the given raw object pointer.
Properties
- 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
- maximumRasterBrightness ↔ NSExpression
-
Increase or reduce the brightness of the image. The value is the maximum
brightness.
getter/setter pair
- maximumRasterBrightnessTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
maximumRasterBrightnessproperty.getter/setter pair - maximumZoomLevel ↔ double
-
The maximum zoom level at which the layer gets parsed and appears. This value is a floating-point
number.
getter/setter pairinherited
- minimumRasterBrightness ↔ NSExpression
-
Increase or reduce the brightness of the image. The value is the minimum
brightness.
getter/setter pair
- minimumRasterBrightnessTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
minimumRasterBrightnessproperty.getter/setter pair - minimumZoomLevel ↔ double
-
The minimum zoom level at which the layer gets parsed and appears. This value is a floating-point
number.
getter/setter pairinherited
- rasterBrightnessMax ↔ NSExpression
-
rasterBrightnessMax
getter/setter pair
- rasterBrightnessMin ↔ NSExpression
-
rasterBrightnessMin
getter/setter pair
- rasterContrast ↔ NSExpression
-
Increase or reduce the contrast of the image.
getter/setter pair
- rasterContrastTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
rasterContrastproperty.getter/setter pair - rasterFadeDuration ↔ NSExpression
-
Fade duration when a new tile is added, or when a video is started or its
coordinates are updated.
getter/setter pair
- rasterHueRotate ↔ NSExpression
-
rasterHueRotate
getter/setter pair
- rasterHueRotation ↔ NSExpression
-
Rotates hues around the color wheel.
getter/setter pair
- rasterHueRotationTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
rasterHueRotationproperty.getter/setter pair - rasterOpacity ↔ NSExpression
-
The opacity at which the image will be drawn.
getter/setter pair
- rasterOpacityTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
rasterOpacityproperty.getter/setter pair - rasterResampling ↔ NSExpression
-
rasterResampling
getter/setter pair
- rasterResamplingMode ↔ NSExpression
-
The resampling/interpolation method to use for overscaling, also known as
texture magnification filter
getter/setter pair
- rasterSaturation ↔ NSExpression
-
Increase or reduce the saturation of the image.
getter/setter pair
- rasterSaturationTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
rasterSaturationproperty.getter/setter pair - 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
- superclass$1 → ObjCObjectBase
-
superclass
no setterinherited
- visible ↔ bool
-
Whether this layer is displayed. A value of
NOhides the layer.getter/setter pairinherited
Methods
-
autorelease(
) → MLNRasterStyleLayer -
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(
) → MLNRasterStyleLayer -
init
override
-
initWithIdentifier(
NSString identifier, {required MLNSource source}) → MLNRasterStyleLayer - Returns a raster 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(
) → MLNRasterStyleLayer -
retain
override
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNRasterStyleLayer -
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(
) → MLNRasterStyleLayer -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → MLNRasterStyleLayer -
allocWithZone:
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNRasterStyleLayer.override -
new$(
) → MLNRasterStyleLayer -
new
override