Hello,

I am working on a googlemap, which all works fine, apart from the fact
I can't seem to set a max and min zoom (I would like to limit the
levels to a couple of levels either way of a default zoom view)

I have tried using the map.getMimimumResolution, but this doesn't seem
to work - any ideas ?

  function initialize() {

       var latlng = new google.maps.LatLng("<%=Html.Encode
(Model.Field01.Field01) %>", "<%=Html.Encode(Model.Field01.Field03)
%>");
        var myOptions = {
        zoom: 13,
            center: latlng,
            disableDefaultUI: false,
            navigationControl: true,
navigationControlOptions: {style:
google.maps.NavigationControlStyle.ZOOM_PAN},
            navigationControl: true,
            mapTypeId: google.maps.MapTypeId.ROADMAP

        };
        var map = new google.maps.Map(document.getElementById
("mapcontainer"), myOptions);

        map.getMinimumResolution = function() { return 6 };

        var marker = new google.maps.Marker({
            position: latlng,
            map: map,
            title: "<%=Model.AccomName %>"
          });


                 }

Any thoughts appreciated, Thanks

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=.


Reply via email to