Builds a MapLibre image source spec and raster layer spec from a basemap definition. Pure factory — does not call any map API.
Basemap config with imageSource.url and imageSource.coordinates.
imageSource.url
imageSource.coordinates
Source ID to use.
Layer ID to use.
Source and layer specs, or null if the definition is invalid.
Builds a MapLibre image source spec and raster layer spec from a basemap definition. Pure factory — does not call any map API.