Created
May 18, 2020 14:40
-
-
Save carmoreira/109c23e8cd9bfe2a9ee57e05dcca3084 to your computer and use it in GitHub Desktop.
Simulate click after map is ready - Interactive Geo Maps WordPress plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace with your map ID and region code. | |
let mapID = 21148; | |
let mapRegion = 'US-CA'; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMapsManager.select(mapID,mapRegion); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment