SubtypeFeatureLayer.withFeatureTable constructor
- ArcGISFeatureTable featureTable
Creates a new subtype feature layer object.
If are there no ArcGISFeatureTable.featureSubtypes objects defined on the ArcGISFeatureTable, the layer will fail to load.
Parameters:
featureTable
— The feature table used as the source of the subtype feature layer.
Implementation
factory SubtypeFeatureLayer.withFeatureTable(
ArcGISFeatureTable featureTable,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_SubtypeFeatureLayer_createWithFeatureTable(
featureTable._handle,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}