Oh ok! I'll give that a go. Thanks very much!
-----
Took a couple goes but I've got it working now. Thank you ever so much for the help! I've been stuck on this for a few days now.
This isn't specific to Squarespace; the code that you're using has been written in a way that it can only be used once per page.
If you want to have multiple instances you'll want to rewrite the code in subsequent blocks to allow it to work and to avoid unnecessary duplication.
For example, the following HTML creates an element with an ID of world-map:
<div id="world-map"></div>
As an ID can only be used once per webpage, you will need to modify the second code block to use "world-map2" or something similar. Bear in mind that every reference to "world-map" will need to be changed too. For example, document.getElementById('world-map').clientWidth will need to be changed and so on.
Did this help? Please give feedback by clicking an icon below ⬇️