You can use maxZoom, but that sets the max zoom of the map and not of the autofit function. That means that the user will not be able to zoom further in on the map if they would want to.
map:{
center: true,
zoom: 10,
maxZoom: 18
}
Instead I added a hidden circle or radius to every point with a size that would make the map zoom out to the zoom level I would want it to be. This way the user can still zoom further in if they would want to.
$('#test').gmap3(
{
action: 'addMarker',
latLng: "your data input for markers",
map:{
center: true,
zoom: 10
}
},
{
action: 'addCircle',
latLng: "your data input for markers",
options: {
radius : 75,
strokeOpacity: 0,
fillOpacity: 0,
}
},
'autofit'
);