ArcGISTiledLayer.withItem constructor

ArcGISTiledLayer.withItem(
  1. Item item
)

Creates an ArcGIS tiled layer from a PortalItem representing an ArcGIS map service.

The item's type should be PortalItemType.mapService.

Parameters:

Implementation

factory ArcGISTiledLayer.withItem(
  Item item,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISTiledLayer_createWithItem(
      item._handle,
      errorHandler,
    );
  });
  return Layer._instanceCache.instanceWith(handle);
}