I try to use the concept from here in an automated way, but maps are not displayed. The included html looks ok:
Minimal reproducible example: