Expanding on IotGirl's answer, there are a lot of nuances when it comes to using iframes. In this case you are passing raw HTML into the srcdoc
of an iframe. All content in srcdoc
of an iframe is generally considered untrusted by the browser, so a lot of advance capabilities become disabled by the browser and silently fail.
That said, if you instead host your content as it's own page and iframe that in using src
and your hosted page is on an https
endpoint, it is considered trusted and you can do pretty much everything you could do normally, depending on what attributes you add (e.g. PowerBI iframes in 3rd party visuals and disables WebGL by default using an attribute on the iframe). So try this:
<iframe src="https://www.enfor.net/map2.html"></iframe>
This approach should make developing and debugging a lot easier as well.