ServiceFeatureTable.withFeatureLayerItem constructor

ServiceFeatureTable.withFeatureLayerItem(
  1. Item item
)

Creates a new service feature table object from an ArcGIS feature service or feature layer portal item.

If the portal item is a feature service, the ServiceFeatureTable will be created from the first layer on the service. If the portal item is a feature layer, the ServiceFeatureTable will be created from the feature layer.

Parameters:

  • item — An ArcGIS feature service or feature layer PortalItem.

Implementation

factory ServiceFeatureTable.withFeatureLayerItem(
  Item item,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceFeatureTable_createWithFeatureLayerItem(
      item._handle,
      errorHandler,
    );
  });
  return FeatureTable._instanceCache.instanceWith(handle);
}