exportStyleResourceCache method
- required Uri itemResourceCacheUri,
Return a new export vector tiles job that will download a custom style from a portal item as an item resource cache.
The job will return the item resource cache without a vector tile cache. This is useful when a number of different styles are applied to the same underlying vector tile service. This avoids exporting multiple copies of the same tiles.
Parameters:
itemResourceCacheUri
— The file path where the vector style file will be saved on disk.
Return Value: A new ExportVectorTilesJob.
Implementation
ExportVectorTilesJob exportStyleResourceCache({
required Uri itemResourceCacheUri,
}) {
final coreItemResourceCacheUri =
_CString(itemResourceCacheUri.toFilePath());
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ExportVectorTilesTask_exportStyleResourceCache(
_handle,
coreItemResourceCacheUri.bytes,
errorHandler,
);
});
return ExportVectorTilesJob._fromHandle(
objectHandle,
)!;
}