API Zoom Levels Google Maps

1

Does anyone know how to set the maximum zoom level and the minimum level in the Google Maps API?

When you zoom in, the hemispheres repeat themselves and I do not want the user to see it.

Repeat points ex: link

I want to avoid just that, the duplicity of locations, and what I initially thought was, to limit the user's zoom. Setting the Min Zoom

    
asked by anonymous 04.06.2014 / 15:06

1 answer

1

For those with an interest,

In the Maps documentation, there is a property called MinZoon. All you have to do is set the minimum value.

Example:

    mapOptions = {
                            zoom: zoom,
                            center: new google.maps.LatLng(30.8097, -98.5553),
                            mapTypeId: google.maps.MapTypeId.ROADMAP,
                            mapTypeControl: false,
                            panControl: false,
                            disableDefaultUI: true,
                            navigationControl: false,
                            streetViewControl: false,
                            scrollwheel: false,
                            zoomControl: true,
                            minZoom: 2
 };
    
04.06.2014 / 16:27