Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active June 22, 2022 09:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/03b468782dd21af0c8a20554bdf7ca71 to your computer and use it in GitHub Desktop.
Save carmoreira/03b468782dd21af0c8a20554bdf7ca71 to your computer and use it in GitHub Desktop.
Interactive Geo Maps - Remove Pan out limit - allow map to be dragged beyond the limits
// replace with your map ID.
let mapID = 877;
let mapContainer = document.getElementById('map_' + mapID);
mapContainer.addEventListener('mapready',function(ev){
iMaps.maps[mapID].map.maxPanOut = 10;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment