TileCache.withFileUri constructor
- Uri fileUri
Create a tile cache from the specified tile cache path.
Creates a tile cache from the given local path to a tile package (.tpk or .tpkx file), or directory containing a compact or exploded cache.
Parameters:
fileUri
— The path to the tile cache.
Implementation
factory TileCache.withFileUri(
Uri fileUri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreFileUri = _CString(fileUri.toFilePath());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TileCache_createWithPath(
coreFileUri.bytes,
errorHandler,
);
});
return TileCache._instanceCache.instanceWith(handle);
}