Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created February 8, 2022 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/3d40a4e17aa2c56f341c329ea257f5d0 to your computer and use it in GitHub Desktop.
Save carmoreira/3d40a4e17aa2c56f341c329ea257f5d0 to your computer and use it in GitHub Desktop.
Select marker by default on map load - Interactive Geo Maps
// replace with your map ID and marker title.
let mapUID = 3491660;
let markerTitle = 'My Marker Title';
let mapContainer = document.getElementById('map_' + mapUID);
mapContainer.addEventListener('mapready', function(ev) {
setTimeout(function(){ iMapsManager.select(mapUID, markerTitle) },500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment