FeatureCollection.withTables constructor

FeatureCollection.withTables(
  1. List<FeatureCollectionTable> tables
)

Creates a feature collection object from a set of feature collection tables.

Parameters:

Implementation

factory FeatureCollection.withTables(List<FeatureCollectionTable> tables) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreTables =
      tables.toMutableArray(valueType: _ElementType.featureCollectionTable);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureCollection_createWithTables(
        coreTables._handle, errorHandler);
  });
  final FeatureCollection object = FeatureCollection._withHandle(handle);
  object._tables.value.setCache(tables);
  return object;
}