Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created March 13, 2022 14:00
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/671f2323d96f22c90f5e8e98fdafbd53 to your computer and use it in GitHub Desktop.
Save carmoreira/671f2323d96f22c90f5e8e98fdafbd53 to your computer and use it in GitHub Desktop.
Interactive Geo Maps - Listen to zoom home button click event
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