Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created February 27, 2023 23:12
Show Gist options
  • Save carmoreira/fd52cf384099ab94ba72a636f1a87c3d to your computer and use it in GitHub Desktop.
Save carmoreira/fd52cf384099ab94ba72a636f1a87c3d to your computer and use it in GitHub Desktop.
Make overlay entries list interact with base map - Interactive Geo Maps
document.querySelectorAll('.igm_entries_list')
.forEach(function(list) {
list.setAttribute('data-map-id','3492969'); // change to your base map ID
var clone = list.cloneNode(true);
iMapsActions.buildLists(clone);
list.replaceWith(clone);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment