Here is a codepen and at the bottom of this question is the actual code. Although the code works fine in Chrome, for some reason image elements in an svg<
image
svg<
The width and height attributes must be assigned to the image element in the actual HTML for SVG version 1.1:
width
height
<svg id='svg' viewBox='0 0 6144 4608' version='1.1'> <image x='0' y='0' width="100%"; height="100%" xlink:href='https://i.postimg.cc/hvH4yn2Q/map.jpg' /> </svg>