WmsLayer.withItem constructor
- Item item
Creates a WMS layer from a portal item.
Parameters:
item
— A portal item of type PortalItemType.wms.
Implementation
factory WmsLayer.withItem(
Item item,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_WMSLayer_createWithItem(
item._handle,
errorHandler,
);
});
return Layer._instanceCache.instanceWith(handle);
}