MGLRasterStyleLayer
@interface MGLRasterStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
A raster layer which allows customization of styling properties at runtime. You may
instantiate a new raster 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.
-
The opacity at which the image will be drawn.
The default value of this property is an
NSNumber
object containing the float1
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterOpacity;
Swift
var rasterOpacity: MGLStyleAttributeValue! { get set }
-
Rotates hues around the color wheel.
This property is measured in degrees.
The default value of this property is an
NSNumber
object containing the float0
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterHueRotate;
Swift
var rasterHueRotate: MGLStyleAttributeValue! { get set }
-
Increase or reduce the brightness of the image. The value is the minimum brightness.
The default value of this property is an
NSNumber
object containing the float0
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterBrightnessMin;
Swift
var rasterBrightnessMin: MGLStyleAttributeValue! { get set }
-
Increase or reduce the brightness of the image. The value is the maximum brightness.
The default value of this property is an
NSNumber
object containing the float1
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterBrightnessMax;
Swift
var rasterBrightnessMax: MGLStyleAttributeValue! { get set }
-
Increase or reduce the saturation of the image.
The default value of this property is an
NSNumber
object containing the float0
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterSaturation;
Swift
var rasterSaturation: MGLStyleAttributeValue! { get set }
-
Increase or reduce the contrast of the image.
The default value of this property is an
NSNumber
object containing the float0
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterContrast;
Swift
var rasterContrast: MGLStyleAttributeValue! { get set }
-
Fade duration when a new tile is added.
This property is measured in milliseconds.
The default value of this property is an
NSNumber
object containing the float300
. Set this property tonil
to reset it to the default value.Declaration
Objective-C
@property (assign, readwrite, nonatomic, null_resettable) id<MGLStyleAttributeValue> rasterFadeDuration;
Swift
var rasterFadeDuration: MGLStyleAttributeValue! { get set }