ArcGISVectorTiledLayer.withItem constructor

ArcGISVectorTiledLayer.withItem(
  1. Item item
)

Creates an ArcGIS Vector Tiled Layer from a PortalItem.

Parameters:

Implementation

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