Set minZoom on Google Map

I’m using the Google Map Extended plugin to draw a map.
(Plugin Page:Google Maps Extended Plugin | Bubble)

The user can freely zoom in and out on the map, but I want to control the zoom width between 5 and 20.

The Google Map Extended plugin doesn’t have a place to set the maximum and minimum zoom values, which is a problem.
And I tried to supplement the following code with Run JavaScript, but it failed.

function initialize(){
var mapDiv = document.getElementsByClassName("gmapext") ;
var mapOpt = {
    minZoom: 5 ,
} ;
var map = new google.maps.Map( mapDiv, mapOpt ) ;
}
google.maps.event.addDomListener(window, 'load', initialize);

Please let me know if there is any good way.

Thank you.

This topic was automatically closed after 70 days. New replies are no longer allowed.