ArcGISTiledLayer.withItem constructor
- Item item
Creates an ArcGIS tiled layer from a PortalItem representing an ArcGIS map service.
The item's type should be PortalItemType.mapService.
Parameters:
item
— A portal item of type PortalItemType.mapService.
Implementation
factory ArcGISTiledLayer.withItem(
Item item,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISTiledLayer_createWithItem(
item._handle,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}