Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active May 16, 2022 13:51
Show Gist options
  • Select an option

  • Save carmoreira/23db91d18f3ed781b01422ef9e6c9fc7 to your computer and use it in GitHub Desktop.

Select an option

Save carmoreira/23db91d18f3ed781b01422ef9e6c9fc7 to your computer and use it in GitHub Desktop.
Interactive Geo Maps - Add reset link to content that display below/side
jQuery('.igm-map-content').each(function() {
var button = jQuery('<a>Close</a>');
button.on('click', function() {
var mapID = 3492169; // replace with your map ID
iMapsManager.clearSelected(mapID);
iMapsActions.resetActions(mapID);
});
jQuery(this).prepend(button);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment