OfflineTileManager class

Constructors

OfflineTileManager({required TileSourceType tileSource, String? mbtilesPath, TileCacheConfig? cacheConfig, bool allowOnlineFallback = true})

Properties

archiveMetadata → MbTilesMetadata?
What the opened archive says about itself, or null when no archive is open.
no setter
cacheConfig → TileCacheConfig
final
cachedRegions → List<CachedCoverageRegion>
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasOfflineArchive → bool
no setter
mbtilesPath → String?
final
resolver → RuntimeTileResolver
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tileProvider → OfflineTileProvider
no setter
tileSource → TileSourceType
final

Methods

archiveCamera({required LatLng fallbackCenter, required double fallbackZoom, required double fallbackMinZoom, required double fallbackMaxZoom}) → ArchiveCamera
The camera this archive can actually serve, degrading per field to the caller's own values when the archive is absent or silent.
cacheRegion({required LatLngBounds bounds, required CoverageTier tier, TileFetchCallback? tileFetcher}) → Future<int>
cacheRoute({required List<LatLng> routeShape, CoverageTier tier = CoverageTier.t1Corridor, TileFetchCallback? tileFetcher}) → Future<int>
cleanupExpiredRegions() → void
coverageForBounds(LatLngBounds bounds, {required int zoom, int panBuffer = 1}) → TileCoverage
How much of a whole VIEWPORT the archive can actually paint.
dispose() → Future<void>
hasLocalCoverageForPoint(LatLng point, {int zoom = 12}) → bool
hasLocalCoverageForPoints(Iterable<LatLng> points, {int zoom = 12}) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
uncoveredPoints(Iterable<LatLng> points, {int zoom = 12}) → List<LatLng>

Operators

operator ==(Object other) → bool
The equality operator.
inherited