Skip to content

Instantly share code, notes, and snippets.

Created April 22, 2020 14:41
What would you like to do?
Set map selection based on URL hash - Interactive Geo Maps.
// replace with your map ID.
let mapID = 21148;
let mapContainer = document.getElementById('map_' + mapID);
let hash = window.location.hash.substr(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment