Skip to content

Instantly share code, notes, and snippets.

@carmoreira

carmoreira/click.js

Created May 18, 2020
Embed
What would you like to do?
Simulate click after map is ready - Interactive Geo Maps WordPress plugin
// 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