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