Validates and resolves the DOM container element for the map.
DOM element id or selector string.
The resolved HTMLElement.
Error if mapId is missing or no element is found.
Validates and resolves the DOM container element for the map.