WmsLayer.withItem constructor

WmsLayer.withItem(
  1. Item item
)

Creates a WMS layer from a portal item.

Parameters:

Implementation

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