create Layer
suspend fun createLayer(serviceAddress: String, layerNames: List<String>, displayName: String? = null, serviceMetadata: String? = null): WmsImageLayer
Create a WMS tiled image layer (cache-agnostic).
Capabilities resolution is offline-first: serviceMetadata (caller-supplied XML) is used when present and it deserializes cleanly; only when it is missing, blank, or undecodable does the factory issue an online GetCapabilities request. The cache subsystem is not consulted here — see the canonical 2-step factory + ContentManager.attachCache pattern.
Parameters
service Address
WMS service address
layer Names
Layer names to combine into the resulting image layer
display Name
Optional layer display name
service Metadata
Optional capabilities XML override (skips the online fetch)