resetSublayers method

void resetSublayers()

Resets the sublayers of a map image layer to the default values defined by the service.

After this call, any changes to the sublayers (either by using an ArcGISMapImageSublayer setter or by changing the sublayer collections) are lost. The sublayer hierarchy returns to its initial state (defined by the service) and image requests to display the layer will no longer use the dynamic layer capabilities of the service. All ArcGISMapImageSublayer objects will be recreated.

Implementation

void resetSublayers() {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ArcGISMapImageLayer_resetSublayers(
      _handle,
      errorHandler,
    );
  });
}