MLNTilePyramidOfflineRegion class
An offline region defined by a style URL, geographic coordinate bounds, and range of zoom levels.
To minimize the resources required by an irregularly shaped offline region, use the MLNShapeOfflineRegion class instead.
Example
let northeast = CLLocationCoordinate2D(latitude: 40.989329, longitude: -102.062592)
let southwest = CLLocationCoordinate2D(latitude: 36.986207, longitude: -109.049896)
let bbox = MLNCoordinateBounds(sw: southwest, ne: northeast)
let region = MLNTilePyramidOfflineRegion(styleURL: MLNStyle.lightStyleURL, bounds: bbox,
fromZoomLevel: 11, toZoomLevel: 14) let context = "Tile Pyramid Region".data(using: .utf8)
MLNOfflineStorage.shared.addPack(for: region, withContext: context!)
Related examples
TODO: Download an offline map, learn how to define an offline region to be downloaded to a user's device.
- Implemented types
Constructors
- MLNTilePyramidOfflineRegion()
-
Returns a new instance of MLNTilePyramidOfflineRegion constructed with the default
newmethod.factory - MLNTilePyramidOfflineRegion.castFrom(ObjCObjectBase other)
-
Constructs a MLNTilePyramidOfflineRegion that points to the same underlying object as
other. -
MLNTilePyramidOfflineRegion.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNTilePyramidOfflineRegion that wraps the given raw object pointer.
Properties
- bounds → MLNCoordinateBounds
-
The coordinate bounds for the geographic region covered by the downloaded
tiles.
no setter
- 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
- includesIdeographicGlyphs ↔ bool
-
Specifies whether to include ideographic glyphs in downloaded font data.
Ideographic glyphs make up the majority of downloaded font data, but
it is possible to configure the renderer to use locally installed fonts
instead of relying on fonts downloaded as part of the offline pack.
See
MLNIdeographicFontFamilyNamesetting. Also, for regions outside of China, Japan, and Korea, these glyphs will rarely appear for non-CJK users.getter/setter pair - isProxy → bool
-
isProxy
no setterinherited
- maximumZoomLevel → double
-
The maximum zoom level for which to download tiles and other resources.
no setter
- minimumZoomLevel → double
-
The minimum zoom level for which to download tiles and other resources.
no setter
- ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- styleURL → NSURL
-
URL of the style whose resources are required for offline viewing.
no setter
- superclass$1 → ObjCObjectBase
-
superclass
no setterinherited
Methods
-
autorelease(
) → MLNTilePyramidOfflineRegion - autorelease
-
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
-
encodeWithCoder(
NSCoder coder) → void - encodeWithCoder:
-
forwardingTargetForSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
forwardingTargetForSelector:
inherited
-
forwardInvocation(
NSInvocation anInvocation) → void -
forwardInvocation:
inherited
-
init(
) → MLNTilePyramidOfflineRegion - init
-
initWithCoder(
NSCoder coder) → MLNTilePyramidOfflineRegion? - initWithCoder:
-
initWithStyleURL(
NSURL? styleURL, {required MLNCoordinateBounds bounds$1, required double fromZoomLevel, required double toZoomLevel}) → MLNTilePyramidOfflineRegion - Initializes a newly created offline region with the given style URL, geographic coordinate bounds, and range of zoom levels.
-
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(
) → MLNTilePyramidOfflineRegion - retain
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNTilePyramidOfflineRegion - self
-
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(
) → MLNTilePyramidOfflineRegion - alloc
-
allocWithZone(
Pointer< NSZone> zone) → MLNTilePyramidOfflineRegion - allocWithZone:
-
getSupportsSecureCoding(
) → bool - supportsSecureCoding
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNTilePyramidOfflineRegion. -
new$(
) → MLNTilePyramidOfflineRegion - new