Created
March 13, 2022 14:00
-
-
Save carmoreira/671f2323d96f22c90f5e8e98fdafbd53 to your computer and use it in GitHub Desktop.
Interactive Geo Maps - Listen to zoom home button click event
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
let mapID = '3491792'; //replace with your map ID | |
iMaps.maps[mapID].map.zoomControl.children._values[0].events.on('hit', function() { | |
//run your custom code here, it will be triggered when the home button is clicked. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment