Last active
May 16, 2022 13:51
-
-
Save carmoreira/23db91d18f3ed781b01422ef9e6c9fc7 to your computer and use it in GitHub Desktop.
Interactive Geo Maps - Add reset link to content that display below/side
This file contains hidden or 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
| 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