MLNHillshadeStyleLayer class
An MLNHillshadeStyleLayer is a style layer that renders raster digital elevation
model (DEM) tiles on the map.
Use a hillshade style layer to configure the color parameters of raster tiles
loaded by an MLNHillshadeStyleLayer object. For example, you could use a
hillshade style layer to render Mapbox
Terrain-RGB data.
To display posterized hillshading based on vector shapes, as with the Mapbox Terrain
source, use an MLNHillshadeStyleLayer object in conjunction with several
MLNHillshadeStyleLayer objects.
You can access an existing hillshade 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 hillshade style layer and add it to the style using a method such as
MLNStyle/addLayer:.
Example
- Inheritance
-
- Object
- MLNStyleLayer
- MLNForegroundStyleLayer
- MLNHillshadeStyleLayer
Constructors
- MLNHillshadeStyleLayer()
-
Returns a new instance of MLNHillshadeStyleLayer constructed with the default
newmethod.factory - MLNHillshadeStyleLayer.castFrom(ObjCObjectBase other)
-
Constructs a MLNHillshadeStyleLayer that points to the same underlying object as
other. -
MLNHillshadeStyleLayer.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNHillshadeStyleLayer 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
- hillshadeAccentColor ↔ NSExpression
-
The shading color used to accentuate rugged terrain like sharp cliffs and
gorges.
getter/setter pair
- hillshadeAccentColorTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
hillshadeAccentColorproperty.getter/setter pair - hillshadeExaggeration ↔ NSExpression
-
Intensity of the hillshade
getter/setter pair
- hillshadeExaggerationTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
hillshadeExaggerationproperty.getter/setter pair - hillshadeHighlightColor ↔ NSExpression
-
The shading color of areas that faces towards the light source.
getter/setter pair
- hillshadeHighlightColorTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
hillshadeHighlightColorproperty.getter/setter pair - hillshadeIlluminationAnchor ↔ NSExpression
-
Direction of light source when map is rotated.
getter/setter pair
- hillshadeIlluminationDirection ↔ NSExpression
-
The direction of the light source used to generate the hillshading with 0 as
the top of the viewport if
hillshadeIlluminationAnchoris set toMLNHillshadeIlluminationAnchorViewportand due north ifhillshadeIlluminationAnchoris set toMLNHillshadeIlluminationAnchorMap.getter/setter pair - hillshadeShadowColor ↔ NSExpression
-
The shading color of areas that face away from the light source.
getter/setter pair
- hillshadeShadowColorTransition ↔ MLNTransition
-
The transition affecting any changes to this layer’s
hillshadeShadowColorproperty.getter/setter pair - 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
- 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(
) → MLNHillshadeStyleLayer -
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(
) → MLNHillshadeStyleLayer -
init
override
-
initWithIdentifier(
NSString identifier, {required MLNSource source}) → MLNHillshadeStyleLayer - Returns a hillshade 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(
) → MLNHillshadeStyleLayer -
retain
override
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNHillshadeStyleLayer -
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(
) → MLNHillshadeStyleLayer -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → MLNHillshadeStyleLayer -
allocWithZone:
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNHillshadeStyleLayer.override -
new$(
) → MLNHillshadeStyleLayer -
new
override