Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created Sep 6, 2021
Embed
What would you like to do?
Minimum Zoom - 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].map.minZoomLevel = 2.5; // replace with your value
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment