downloadByAsset
Declaration
fun downloadByAsset( vpsMapAssetId: String, latitude: Double, longitude: Double, getTexture: Boolean, maxChunks: Int = 0, maxSizeKb: Int = 0, ): Flow<NSDKResult<MeshDownloaderData, MeshDownloaderError>>
Summary
Returns
A Flow that emits NSDKResult.Success for each chunk and a terminal NSDKResult.Error if the download fails or the size limit is reached.
Streams mesh chunks for a VPS map asset, sorted closest-first by GPS position.
MeshDownloader resolves the mesh sibling for
vpsMapAssetIdvia SitesManager, thendownloads chunks. The flow completes normally when all chunks have been delivered
(
MeshDownloaderError.NONE) or when the cumulative size cap is hit(
MeshDownloaderError.SIZE_LIMIT_REACHED). Other failures are emitted asNSDKResult.Error.