Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created December 27, 2023 10:50
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/61363424a43b83fb9853cad6bc51ecbd to your computer and use it in GitHub Desktop.
Save carmoreira/61363424a43b83fb9853cad6bc51ecbd to your computer and use it in GitHub Desktop.
Change all tooltips orientation in Interactive Geo Maps
// replace with your map ID and region code.
let mapID = 21148;
let mapContainer = document.getElementById('map_' + mapID);
mapContainer.addEventListener('mapready',function(ev){
iMaps.maps[mapID].series.forEach(function(ser){
ser.tooltip.ignoreBounds = true;
ser.tooltip.pointerOrientation = 'left'; // "horizontal", "vertical", "up", "down", "right", or "left"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment