Last active
June 22, 2022 09:01
-
-
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
This file contains 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
// 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