enableBaseMapCaching method

  1. @override
Future<MPError?> enableBaseMapCaching(
  1. MPMapboxStyleSource styleSource,
  2. MPDataSetCachingScope scope
)
override

Implementation

@override
Future<MPError?> enableBaseMapCaching(
    MPMapboxStyleSource styleSource, MPDataSetCachingScope scope) async {
  final error = await dataSetCacheMethodChannel.invokeMethod(
      "DSC_enableBaseMapCaching",
      {"styleSource": styleSource._jsonEncode(), "scope": scope.value});
  return MPError.fromJson(error);
}