getPreplannedMapAreas method

Future<List<PreplannedMapArea>> getPreplannedMapAreas()

Returns an async Future which when successful, contains a list of preplanned map areas, if there are any.

Note that calling this method will load the OfflineMapTask if it is not already loaded.

Return Value: Returns an array of PreplannedMapArea.

Implementation

Future<List<PreplannedMapArea>> getPreplannedMapAreas() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OfflineMapTask_getPreplannedMapAreasAsync(
        _handle, errorHandler);
  });
  return taskHandle.toFuture((element) => element.getValueAsList()!);
}