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