Created
February 8, 2022 15:51
-
-
Save carmoreira/3d40a4e17aa2c56f341c329ea257f5d0 to your computer and use it in GitHub Desktop.
Select marker by default on map load - Interactive Geo Maps
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 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