FeatureCollection.withTables constructor
- List<
FeatureCollectionTable> tables
Creates a feature collection object from a set of feature collection tables.
Parameters:
tables
— A List of FeatureCollectionTable.
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;
}