On Nov 24, 7:33 am, "Susannah (Google Employee)"
<[email protected]> wrote:
> We don't currently allow you to modify the min and maxzoomlevels for
> a map type. However, you can try listening to the zoom_changed event
> and resetting thezoomlevel.
>
> For example:
> google.maps.event.addListener(map, 'zoom_changed', function() {
> if (map.getZoom() > 6) {
> map.setZoom(6);
> }
>
> });
I cannot get this working at all. We do not want our visitors to be
able to zoom in too close. In v2 we used a default value of 10 with
getMinimumResolution = 7 and getMaximumResolution = 13. The code that
I use to generate the map is included below, and I'd appreciate any
assistance.
<!-- Start Google Map v3 API -->
<script type="text/javascript">
<!--
function initialize()
{
var Latlng = new google.maps.LatLng(<?php echo $gw_20;?>,<?php echo
$gw_21;?>);
var Options =
{
zoom: 10,
center: Latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var image = "/images/mymarker.png";
var map = new google.maps.Map(document.getElementById("my_map"),
Options);
var marker = new google.maps.Marker
({
position: Latlng,
map: map,
icon: image
});
}
//-->
</script>
<div id="my_map" style="width:900px; height:675px"></div>
<!-- End Google Map v3 API -->
Thanks,
George
--
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.