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.arcGISMapService.
Parameters:
item
— A portal item of type PortalItemType.arcGISMapService.
Implementation
factory ArcGISTiledLayer.withItem(Item item) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISTiledLayer_createWithItem(
item._handle, errorHandler);
});
return Layer._instanceCache.instanceWith(handle);
}