ServiceFeatureTable.withItem constructor

ServiceFeatureTable.withItem(
  1. Item item,
  2. {required int layerId}
)

Creates a new service feature table object from a feature service portal item.

Parameters:

  • item — An ArcGIS feature service PortalItem.
  • layerId — The layer id of an individual layer in the ArcGIS feature service represented by the Item.

Implementation

factory ServiceFeatureTable.withItem(Item item, {required int layerId}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceFeatureTable_createWithItem(
        item._handle, layerId, errorHandler);
  });
  return FeatureTable._instanceCache.instanceWith(handle);
}