I tried going back to 3.2 and still does not work. Here is my code.

  var map;
  var minZoom = 7;
  var maxZoom = 14;

  function initialize() {
    var myLatlng = new google.maps.LatLng(38.997841307500714,
-77.618408203125);
    var myOptions = {
      zoom: 8,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.SATELLITE
    }

    map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);

    var i = 0;

    setTimeout("setZoomLim(minZoom, maxZoom);", 200);


    google.maps.event.addListener(map, "maptypeid_changed", function
() {
        setTimeout("setZoomLim(minZoom, maxZoom);", 200);
         google.maps.event.trigger(map, "zoom_changed");
    });

  }

  function setZoomLim (zoomMin, zoomMax) {
    map.mapTypes[map.getMapTypeId()].minZoom = zoomMin;
    map.mapTypes[map.getMapTypeId()].maxZoom = zoomMax;
   google.maps.event.trigger(map, "zoom_changed");
  }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to