Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active May 16, 2022
Embed
What would you like to do?
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