Zooming to center on a map in Google Maps API V3

mmv

New Member
I'm new to using google maps and am trying to find out how to restrict the zoom function so that it does not zoom anywhere except of the center of the map and not zoom to the mouse point. Basically it zooms to the center of the returned map no matter where your mouse pointer is on the map as opposed to zooming where the mouse pointer is located on the map. I don't even know if this is possible currently, some help would be appreciated.\[code\]<script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(51.285583, 1.091045); var myOptions = { zoom: 15, center: latlng, scrollwheel: true, navigationControl: false, mapTypeControl: false, scaleControl: false, draggable: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({ position: new google.maps.LatLng(51.285826, 1.089973), map: map, title: 'Run of The Mill', clickable: true }); } </script>\[/code\]
 
Top