MapSublayerSource constructor

MapSublayerSource(
  1. {required int id}
)

Create a map sublayer source from a map sublayer id.

Parameters:

  • id — The map sublayer id.

Implementation

factory MapSublayerSource({required int id}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MapSublayerSource_createWithId(id, errorHandler);
  });
  return MapSublayerSource._withHandle(handle);
}