Last active
February 15, 2022 21:28
-
-
Save carmoreira/891615308ccb0826d4d056c2a949d16f to your computer and use it in GitHub Desktop.
Increase default zoom step on maps for Interactive Geo Maps
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 = 21148; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].map.zoomStep = 3; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment