ServiceFeatureTable.withUri constructor

ServiceFeatureTable.withUri(
  1. Uri uri
)

Creates a new service feature table object from a given URI.

Parameters:

  • uri — The URI of an individual layer or table in an ArcGIS map or feature service.

Implementation

factory ServiceFeatureTable.withUri(
  Uri uri,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceFeatureTable_createFromURI(
      coreURI.bytes,
      errorHandler,
    );
  });
  return FeatureTable._instanceCache.instanceWith(handle);
}