OfflineManager class
The OfflineManager provides a configuration interface and entrypoint for offline map functionality.
Supported platforms: Android and iOS.
By default, users may download up to 750 tile packs for offline use across all regions. If the limit is hit, any loadRegion call will fail until excess regions are deleted. This limit is subject to change. Please contact Mapbox if you require a higher limit. Additional charges may apply.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allStylePacks(
) → Future< List< StylePack> > - Fetches an array of the existing style packages.
-
loadStylePack(
String styleURI, StylePackLoadOptions loadOptions, OnStylePackLoadProgressListener? progressListener) → Future< StylePack> - Loads a new style package or updates the existing one.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeStylePack(
String styleURI) → Future< StylePack> - Removes a style package.
-
stylePack(
String styleURI) → Future< StylePack> - Returns a style package by its style URI.
-
stylePackMetadata(
String styleURI) → Future< Map< String, Object> > - Returns a style package's associated metadata.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Future< OfflineManager> - Creates a new instance of OfflineManager.