Basemap.withBaseLayer constructor
- Layer? baseLayer
Creates a basemap with a single base layer.
Parameters:
baseLayer
— A layer object.
Implementation
factory Basemap.withBaseLayer(
Layer? baseLayer,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Basemap_createWithBaseLayer(
baseLayer?._handle ?? ffi.nullptr,
errorHandler,
);
});
return Basemap._instanceCache.instanceWith(handle);
}