PreplannedMapArea.withItem constructor

PreplannedMapArea.withItem(
  1. PortalItem portalItem
)

Create an offline map area instance with a portal item that is of type map area.

Parameters:

  • portalItemPortalItem that represents a preplanned offline map area.

Implementation

factory PreplannedMapArea.withItem(PortalItem portalItem) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PreplannedMapArea_createWithItem(
        portalItem._handle, errorHandler);
  });
  final PreplannedMapArea object =
      PreplannedMapArea._instanceCache.instanceWith(handle);
  object._portalItem.cache(portalItem);
  return object;
}