MLNRasterDEMSource class
MLNRasterDEMSource is a map content source that supplies rasterized
digital elevation model
(DEM) tiles to be shown on the map. The location of and metadata about the
tiles are defined either by an option dictionary or by an external file that
conforms to the
TileJSON specification.
A raster DEM source is added to an MLNStyle object along with one or more
MLNHillshadeStyleLayer objects. Use a hillshade style layer to control the
appearance of content supplied by the raster DEM source.
Each
raster-dem
source defined by the style JSON file is represented at runtime by an
MLNRasterDEMSource object that you can use to initialize new style layers.
You can also add and remove sources dynamically using methods such as
MLNStyle/addSource: and MLNStyle/sourceWithIdentifier:.
Currently, raster DEM sources only support the format used by Mapbox Terrain-RGB.
Example
let terrainRGBURL = URL(string: "maptiler://sources/terrain-rgb")!
let source = MLNRasterDEMSource(identifier: "hills", configurationURL: terrainRGBURL)
mapView.style?.addSource(source)
- Inheritance
-
- Object
- MLNSource
- MLNTileSource
- MLNRasterTileSource
- MLNRasterDEMSource
Constructors
- MLNRasterDEMSource()
-
Returns a new instance of MLNRasterDEMSource constructed with the default
newmethod.factory - MLNRasterDEMSource.castFrom(ObjCObjectBase other)
-
Constructs a MLNRasterDEMSource that points to the same underlying object as
other. -
MLNRasterDEMSource.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNRasterDEMSource that wraps the given raw object pointer.
Properties
- attributionHTMLString → NSString?
-
The attribution HTML string associated with this source.
no setterinherited
- attributionInfos → NSArray
-
An array of
MLNAttributionInfoobjects that define the attribution statements to be displayed when the map is shown to the user.no setterinherited - configurationURL → NSURL?
-
The URL to the TileJSON configuration file that specifies the contents of the
source.
no setterinherited
- 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 source in the style to which it is added.
getter/setter pairinherited
- isProxy → bool
-
isProxy
no setterinherited
- ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- superclass$1 → ObjCObjectBase
-
superclass
no setterinherited
Methods
-
autorelease(
) → MLNRasterDEMSource -
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(
) → MLNRasterDEMSource -
init
override
-
initWithIdentifier(
NSString identifier, {required NSURL configurationURL}) → MLNRasterDEMSource -
Returns a raster tile source initialized with an identifier and configuration
URL.
override
-
initWithIdentifier$1(
NSString identifier, {required NSURL configurationURL, required double tileSize}) → MLNRasterDEMSource -
Returns a raster tile source initialized with an identifier, configuration URL,
and tile size.
override
-
initWithIdentifier$2(
NSString identifier, {required NSArray tileURLTemplates, NSDictionary? options}) → MLNRasterDEMSource -
Returns a raster tile source initialized an identifier, tile URL templates, and
options.
override
-
initWithIdentifier_(
NSString identifier) → MLNRasterDEMSource -
Returns a source initialized with an identifier.
override
-
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(
) → MLNRasterDEMSource -
retain
override
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNRasterDEMSource -
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(
) → MLNRasterDEMSource -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → MLNRasterDEMSource -
allocWithZone:
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNRasterDEMSource.override -
new$(
) → MLNRasterDEMSource -
new
override